Lines Matching refs:NULL

60 	{"Unknown", NULL, sip_parse_unknown_header, NULL, NULL, NULL},
61 {"CONTACT", "m", sip_parse_cftr_header, NULL, NULL,
63 {"FROM", "F", sip_parse_cftr_header, NULL, NULL, sip_free_cftr_header},
64 {"TO", "T", sip_parse_cftr_header, NULL, NULL, sip_free_cftr_header},
65 {"CONTENT-LENGTH", "l", sip_parse_clen_header, NULL, NULL,
67 {"CONTENT-TYPE", "c", sip_parse_ctype_header, NULL, NULL,
69 {"CALL-ID", "i", sip_parse_cid_header, NULL, NULL, sip_free_phdr},
70 {"CSEQ", NULL, sip_parse_cseq_header, NULL, NULL, sip_free_phdr},
71 {"VIA", "v", sip_parse_via_header, NULL, NULL, sip_free_phdr},
72 {"Max-Forwards", NULL, sip_parse_maxf_header, NULL, NULL,
74 {"RECORD-ROUTE", NULL, sip_parse_cftr_header, NULL, NULL,
76 {"ROUTE", NULL, sip_parse_cftr_header, NULL, NULL,
78 {"ACCEPT", NULL, sip_parse_acpt_header, NULL, NULL, sip_free_phdr},
79 {"ACCEPT-ENCODING", NULL, sip_parse_acpt_encode_header, NULL, NULL,
81 {"ACCEPT-LANGUAGE", NULL, sip_parse_acpt_lang_header, NULL, NULL,
83 {"ALERT-INFO", NULL, sip_parse_alert_header, NULL, NULL, sip_free_phdr},
84 {"ALLOW", NULL, sip_parse_allow_header, NULL, NULL, sip_free_phdr},
85 {"CALL-INFO", NULL, sip_parse_callinfo_header, NULL, NULL,
87 {"CONTENT-DISPOSITION", NULL, sip_parse_contentdis_header, NULL, NULL,
89 {"CONTENT-ENCODING", "e", sip_parse_contentencode_header, NULL, NULL,
91 {"CONTENT-LANGUAGE", NULL, sip_parse_contentlang_header, NULL, NULL,
93 {"DATE", NULL, sip_parse_date_header, NULL, NULL, sip_free_phdr},
94 {"ERROR-INFO", NULL, sip_parse_errorinfo_header, NULL, NULL,
96 {"EXPIRES", NULL, sip_parse_expire_header, NULL, NULL, sip_free_phdr},
97 {"IN-REPLY-TO", NULL, sip_parse_inreplyto_header, NULL, NULL,
99 {"MIN-EXPIRES", NULL, sip_parse_minexpire_header, NULL, NULL,
101 {"MIME-VERSION", NULL, sip_parse_mimeversion_header, NULL, NULL,
103 {"ORGANIZATION", NULL, sip_parse_org_header, NULL, NULL, sip_free_phdr},
104 {"PRIORITY", NULL, sip_parse_priority_header, NULL, NULL,
106 {"REQUIRE", NULL, sip_parse_require_header, NULL, NULL, sip_free_phdr},
107 {"REPLY-TO", NULL, sip_parse_replyto_header, NULL, NULL, sip_free_phdr},
108 {"RETRY-AFTER", NULL, sip_parse_retryaft_header, NULL, NULL,
110 {"SERVER", NULL, sip_parse_server_header, NULL, NULL, sip_free_phdr},
111 {"SUBJECT", "s", sip_parse_subject_header, NULL, NULL, sip_free_phdr},
112 {"TIMESTAMP", NULL, sip_parse_timestamp_header, NULL, NULL,
114 {"UNSUPPORTED", NULL, sip_parse_usupport_header, NULL, NULL,
116 {"SUPPORTED", "k", sip_parse_support_header, NULL, NULL, sip_free_phdr},
117 {"USER-AGENT", NULL, sip_parse_useragt_header, NULL, NULL,
119 {"WARNING", NULL, sip_parse_warn_header, NULL, NULL, sip_free_phdr},
120 {"ALLOW-EVENTS", "u", sip_parse_allow_events_header, NULL, NULL,
122 {"EVENT", "o", sip_parse_event_header, NULL, NULL, sip_free_phdr},
123 {"SUBSCRIPTION-STATE", NULL, sip_parse_substate_header, NULL, NULL,
125 {"AUTHORIZATION", NULL, sip_parse_author_header, NULL, NULL,
127 {"AUTHENTICATION-INFO", NULL, sip_parse_ainfo_header, NULL, NULL,
129 {"PROXY-AUTHORIZATION", NULL, sip_parse_pauthor_header, NULL, NULL,
131 {"PROXY-AUTHENTICATE", NULL, sip_parse_pauthen_header, NULL, NULL,
133 {"PROXY-REQUIRE", NULL, sip_parse_preq_header, NULL, NULL,
135 {"WWW-AUTHENTICATE", NULL, sip_parse_wauthen_header, NULL, NULL,
137 {"RSEQ", NULL, sip_parse_rseq, NULL, NULL, sip_free_phdr},
138 {"RACK", NULL, sip_parse_rack, NULL, NULL, sip_free_phdr},
139 {"P-ASSERTED-IDENTITY", NULL, sip_parse_passertedid, NULL, NULL,
141 {"P-PREFERRED-IDENTITY", NULL, sip_parse_ppreferredid, NULL, NULL,
143 {"PRIVACY", NULL, sip_parse_privacy_header, NULL, NULL, sip_free_phdr},
144 {NULL, NULL, NULL, NULL, NULL, NULL},
153 sip_header_function_t *sip_header_function_table_external = NULL;
165 while (param != NULL) { in sip_free_params()
181 if (header == NULL) in sip_free_phdr()
184 while (value != NULL) { in sip_free_phdr()
202 if (header == NULL) in sip_free_cftr_header()
205 while (value != NULL) { in sip_free_cftr_header()
208 if (value->cftr_name != NULL) in sip_free_cftr_header()
210 if (value->sip_value_parsed_uri != NULL) { in sip_free_cftr_header()
212 value->sip_value_parsed_uri = NULL; in sip_free_cftr_header()
229 if (new_header == NULL) in sip_new_header()
230 return (NULL); in sip_new_header()
238 if (new_header->sip_hdr_start == NULL) { in sip_new_header()
240 return (NULL); in sip_new_header()
255 assert(sip_header->sip_hdr_start != NULL); in sip_free_header()
258 if (sip_header->sip_hdr_parsed != NULL) { in sip_free_header()
259 assert(sip_header->sip_header_functions != NULL); in sip_free_header()
260 if (sip_header->sip_header_functions->header_free != NULL) { in sip_free_header()
279 if (to == NULL) in sip_dup_header()
280 return (NULL); in sip_dup_header()
308 if (extra_param != NULL) { in _sip_copy_header()
336 if (new_header == NULL) in _sip_copy_header()
350 if (extra_param != NULL) { in _sip_copy_header()
365 _sip_add_header(sip_msg, new_header, B_TRUE, B_FALSE, NULL); in _sip_copy_header()
379 if (_old_msg == NULL || _new_msg == NULL) in _sip_find_and_copy_all_header()
386 header = sip_search_for_header(_old_msg, header_name, NULL); in _sip_find_and_copy_all_header()
387 while (header != NULL) { in _sip_find_and_copy_all_header()
388 ret = _sip_copy_header(_new_msg, header, NULL, B_TRUE); in _sip_find_and_copy_all_header()
408 if (_old_msg == NULL || _new_msg == NULL) in _sip_find_and_copy_header()
413 header = sip_search_for_header(_old_msg, header_name, NULL); in _sip_find_and_copy_header()
414 if (header == NULL) in _sip_find_and_copy_header()
435 if (old_msg == NULL || new_msg == NULL) in sip_copy_all_headers()
442 header = sip_search_for_header(_old_msg, NULL, NULL); in sip_copy_all_headers()
443 while (header != NULL) { in sip_copy_all_headers()
444 ret = _sip_copy_header(_new_msg, header, NULL, B_FALSE); in sip_copy_all_headers()
447 header = sip_search_for_header(_old_msg, NULL, header); in sip_copy_all_headers()
466 if (msg == NULL || sip_msg == NULL) in sip_copy_start_line()
472 if (_old_msg->sip_msg_start_line == NULL) { in sip_copy_start_line()
479 if (new_header == NULL) { in sip_copy_start_line()
505 if (_sip_msg->sip_msg_start_line == NULL) in sip_delete_start_line_locked()
509 while (header != NULL) { in sip_delete_start_line_locked()
516 _sip_msg->sip_msg_start_line = NULL; in sip_delete_start_line_locked()
522 while (_sip_msg->sip_msg_req_res != NULL) { in sip_delete_start_line_locked()
530 if (reqline->sip_parse_uri != NULL) { in sip_delete_start_line_locked()
532 reqline->sip_parse_uri = NULL; in sip_delete_start_line_locked()
551 if (sip_msg == NULL) in sip_delete_start_line()
575 while (header != NULL) { in sip_delete_all_headers()
581 _sip_msg->sip_msg_headers_start = NULL; in sip_delete_all_headers()
582 _sip_msg->sip_msg_headers_end = NULL; in sip_delete_all_headers()
599 header = sip_search_for_header(_sip_msg, header_name, NULL); in sip_delete_headers()
600 if (header == NULL) in sip_delete_headers()
602 while (header != NULL) { in sip_delete_headers()
616 if (header_name != NULL) in sip_delete_headers()
619 header = sip_search_for_header(_sip_msg, NULL, NULL); in sip_delete_headers()
632 _sip_header_t *header = NULL; in _sip_add_header()
634 if (sip_msg == NULL || new_header == NULL) in _sip_add_header()
640 if (header_name != NULL) { in _sip_add_header()
643 header = sip_search_for_header(sip_msg, header_name, NULL); in _sip_add_header()
646 while (header != NULL) { in _sip_add_header()
653 if (header == NULL) in _sip_add_header()
657 if (header != NULL) { in _sip_add_header()
662 new_header->sip_hdr_next = NULL; in _sip_add_header()
672 new_header->sip_hdr_prev = NULL; in _sip_add_header()
681 if (sip_msg->sip_msg_headers_end != NULL) { in _sip_add_header()
689 new_header->sip_hdr_next = NULL; in _sip_add_header()
692 if (sip_msg->sip_msg_headers_start != NULL) { in _sip_add_header()
700 new_header->sip_hdr_prev = NULL; in _sip_add_header()
719 if (sip_header == NULL && header_name == NULL) in _sip_get_header_functions()
720 return (NULL); in _sip_get_header_functions()
725 if (header_name == NULL) { in _sip_get_header_functions()
727 return (NULL); in _sip_get_header_functions()
730 if (sip_find_separator(sip_header, SIP_HCOLON, (char)NULL, in _sip_get_header_functions()
731 (char)NULL, B_FALSE) != 0) { in _sip_get_header_functions()
732 return (NULL); in _sip_get_header_functions()
740 while (sip_header_function_table[i].header_name != NULL || in _sip_get_header_functions()
741 sip_header_function_table[i].header_short_name != NULL) { in _sip_get_header_functions()
742 if (sip_header_function_table[i].header_name != NULL && in _sip_get_header_functions()
751 header_short_name != NULL && len == in _sip_get_header_functions()
764 if (sip_header != NULL) in _sip_get_header_functions()
766 if (sip_header_function_table[i].header_name == NULL) in _sip_get_header_functions()
767 return (NULL); in _sip_get_header_functions()
778 sip_header_function_t *header_f_table = NULL; in sip_get_header_functions()
780 if (sip_header_function_table_external != NULL) { in sip_get_header_functions()
784 if (header_f_table != NULL) in sip_get_header_functions()
802 _sip_header_t *header = NULL; in sip_search_for_header()
803 char *compact_name = NULL; in sip_search_for_header()
804 char *full_name = NULL; in sip_search_for_header()
805 sip_header_function_t *header_f_table = NULL; in sip_search_for_header()
807 if (sip_msg == NULL) in sip_search_for_header()
808 return (NULL); in sip_search_for_header()
813 if (header_name != NULL) { in sip_search_for_header()
814 header_f_table = sip_get_header_functions(NULL, header_name); in sip_search_for_header()
815 if (header_f_table != NULL) { in sip_search_for_header()
818 if (full_name != NULL) in sip_search_for_header()
820 if (compact_name != NULL) in sip_search_for_header()
829 if (old_header != NULL) in sip_search_for_header()
834 while (header != NULL) { in sip_search_for_header()
853 if (full_name != NULL && (full_len <= len) && in sip_search_for_header()
868 if (compact_name != NULL && (compact_len <= len) && in sip_search_for_header()
884 if (header != NULL) { in sip_search_for_header()
886 if (header_f_table == NULL) { in sip_search_for_header()
889 if (header_f_table == NULL) in sip_search_for_header()
907 if (error != NULL) in _sip_startline_to_str()
910 if (sip_msg == NULL || sip_msg->sip_msg_start_line == NULL) { in _sip_startline_to_str()
911 if (error != NULL) in _sip_startline_to_str()
913 return (NULL); in _sip_startline_to_str()
918 if ((slstr = malloc(len + 1)) == NULL) { in _sip_startline_to_str()
920 if (error != NULL) in _sip_startline_to_str()
922 return (NULL); in _sip_startline_to_str()
941 if (error != NULL) in sip_hdr_to_str()
944 if (sip_header == NULL) { in sip_hdr_to_str()
945 if (error != NULL) in sip_hdr_to_str()
947 return (NULL); in sip_hdr_to_str()
951 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
955 if (error != NULL) in sip_hdr_to_str()
957 return (NULL); in sip_hdr_to_str()
959 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
965 if (hdrstr == NULL) { in sip_hdr_to_str()
966 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
970 if (error != NULL) in sip_hdr_to_str()
972 return (NULL); in sip_hdr_to_str()
979 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
987 if (error != NULL) in sip_hdr_to_str()
989 return (NULL); in sip_hdr_to_str()
1003 while (param_list != NULL) { in sip_get_param_from_list()
1011 return (NULL); in sip_get_param_from_list()