Lines Matching refs:NULL

58 	{"Unknown", NULL, sip_parse_unknown_header, NULL, NULL, NULL},
59 {"CONTACT", "m", sip_parse_cftr_header, NULL, NULL,
61 {"FROM", "F", sip_parse_cftr_header, NULL, NULL, sip_free_cftr_header},
62 {"TO", "T", sip_parse_cftr_header, NULL, NULL, sip_free_cftr_header},
63 {"CONTENT-LENGTH", "l", sip_parse_clen_header, NULL, NULL,
65 {"CONTENT-TYPE", "c", sip_parse_ctype_header, NULL, NULL,
67 {"CALL-ID", "i", sip_parse_cid_header, NULL, NULL, sip_free_phdr},
68 {"CSEQ", NULL, sip_parse_cseq_header, NULL, NULL, sip_free_phdr},
69 {"VIA", "v", sip_parse_via_header, NULL, NULL, sip_free_phdr},
70 {"Max-Forwards", NULL, sip_parse_maxf_header, NULL, NULL,
72 {"RECORD-ROUTE", NULL, sip_parse_cftr_header, NULL, NULL,
74 {"ROUTE", NULL, sip_parse_cftr_header, NULL, NULL,
76 {"ACCEPT", NULL, sip_parse_acpt_header, NULL, NULL, sip_free_phdr},
77 {"ACCEPT-ENCODING", NULL, sip_parse_acpt_encode_header, NULL, NULL,
79 {"ACCEPT-LANGUAGE", NULL, sip_parse_acpt_lang_header, NULL, NULL,
81 {"ALERT-INFO", NULL, sip_parse_alert_header, NULL, NULL, sip_free_phdr},
82 {"ALLOW", NULL, sip_parse_allow_header, NULL, NULL, sip_free_phdr},
83 {"CALL-INFO", NULL, sip_parse_callinfo_header, NULL, NULL,
85 {"CONTENT-DISPOSITION", NULL, sip_parse_contentdis_header, NULL, NULL,
87 {"CONTENT-ENCODING", "e", sip_parse_contentencode_header, NULL, NULL,
89 {"CONTENT-LANGUAGE", NULL, sip_parse_contentlang_header, NULL, NULL,
91 {"DATE", NULL, sip_parse_date_header, NULL, NULL, sip_free_phdr},
92 {"ERROR-INFO", NULL, sip_parse_errorinfo_header, NULL, NULL,
94 {"EXPIRES", NULL, sip_parse_expire_header, NULL, NULL, sip_free_phdr},
95 {"IN-REPLY-TO", NULL, sip_parse_inreplyto_header, NULL, NULL,
97 {"MIN-EXPIRES", NULL, sip_parse_minexpire_header, NULL, NULL,
99 {"MIME-VERSION", NULL, sip_parse_mimeversion_header, NULL, NULL,
101 {"ORGANIZATION", NULL, sip_parse_org_header, NULL, NULL, sip_free_phdr},
102 {"PRIORITY", NULL, sip_parse_priority_header, NULL, NULL,
104 {"REQUIRE", NULL, sip_parse_require_header, NULL, NULL, sip_free_phdr},
105 {"REPLY-TO", NULL, sip_parse_replyto_header, NULL, NULL, sip_free_phdr},
106 {"RETRY-AFTER", NULL, sip_parse_retryaft_header, NULL, NULL,
108 {"SERVER", NULL, sip_parse_server_header, NULL, NULL, sip_free_phdr},
109 {"SUBJECT", "s", sip_parse_subject_header, NULL, NULL, sip_free_phdr},
110 {"TIMESTAMP", NULL, sip_parse_timestamp_header, NULL, NULL,
112 {"UNSUPPORTED", NULL, sip_parse_usupport_header, NULL, NULL,
114 {"SUPPORTED", "k", sip_parse_support_header, NULL, NULL, sip_free_phdr},
115 {"USER-AGENT", NULL, sip_parse_useragt_header, NULL, NULL,
117 {"WARNING", NULL, sip_parse_warn_header, NULL, NULL, sip_free_phdr},
118 {"ALLOW-EVENTS", "u", sip_parse_allow_events_header, NULL, NULL,
120 {"EVENT", "o", sip_parse_event_header, NULL, NULL, sip_free_phdr},
121 {"SUBSCRIPTION-STATE", NULL, sip_parse_substate_header, NULL, NULL,
123 {"AUTHORIZATION", NULL, sip_parse_author_header, NULL, NULL,
125 {"AUTHENTICATION-INFO", NULL, sip_parse_ainfo_header, NULL, NULL,
127 {"PROXY-AUTHORIZATION", NULL, sip_parse_pauthor_header, NULL, NULL,
129 {"PROXY-AUTHENTICATE", NULL, sip_parse_pauthen_header, NULL, NULL,
131 {"PROXY-REQUIRE", NULL, sip_parse_preq_header, NULL, NULL,
133 {"WWW-AUTHENTICATE", NULL, sip_parse_wauthen_header, NULL, NULL,
135 {"RSEQ", NULL, sip_parse_rseq, NULL, NULL, sip_free_phdr},
136 {"RACK", NULL, sip_parse_rack, NULL, NULL, sip_free_phdr},
137 {"P-ASSERTED-IDENTITY", NULL, sip_parse_passertedid, NULL, NULL,
139 {"P-PREFERRED-IDENTITY", NULL, sip_parse_ppreferredid, NULL, NULL,
141 {"PRIVACY", NULL, sip_parse_privacy_header, NULL, NULL, sip_free_phdr},
142 {NULL, NULL, NULL, NULL, NULL, NULL},
151 sip_header_function_t *sip_header_function_table_external = NULL;
163 while (param != NULL) { in sip_free_params()
179 if (header == NULL) in sip_free_phdr()
182 while (value != NULL) { in sip_free_phdr()
200 if (header == NULL) in sip_free_cftr_header()
203 while (value != NULL) { in sip_free_cftr_header()
206 if (value->cftr_name != NULL) in sip_free_cftr_header()
208 if (value->sip_value_parsed_uri != NULL) { in sip_free_cftr_header()
210 value->sip_value_parsed_uri = NULL; in sip_free_cftr_header()
227 if (new_header == NULL) in sip_new_header()
228 return (NULL); in sip_new_header()
236 if (new_header->sip_hdr_start == NULL) { in sip_new_header()
238 return (NULL); in sip_new_header()
253 assert(sip_header->sip_hdr_start != NULL); in sip_free_header()
256 if (sip_header->sip_hdr_parsed != NULL) { in sip_free_header()
257 assert(sip_header->sip_header_functions != NULL); in sip_free_header()
258 if (sip_header->sip_header_functions->header_free != NULL) { in sip_free_header()
277 if (to == NULL) in sip_dup_header()
278 return (NULL); in sip_dup_header()
306 if (extra_param != NULL) { in _sip_copy_header()
334 if (new_header == NULL) in _sip_copy_header()
348 if (extra_param != NULL) { in _sip_copy_header()
363 _sip_add_header(sip_msg, new_header, B_TRUE, B_FALSE, NULL); in _sip_copy_header()
377 if (_old_msg == NULL || _new_msg == NULL) in _sip_find_and_copy_all_header()
384 header = sip_search_for_header(_old_msg, header_name, NULL); in _sip_find_and_copy_all_header()
385 while (header != NULL) { in _sip_find_and_copy_all_header()
386 ret = _sip_copy_header(_new_msg, header, NULL, B_TRUE); in _sip_find_and_copy_all_header()
406 if (_old_msg == NULL || _new_msg == NULL) in _sip_find_and_copy_header()
411 header = sip_search_for_header(_old_msg, header_name, NULL); in _sip_find_and_copy_header()
412 if (header == NULL) in _sip_find_and_copy_header()
433 if (old_msg == NULL || new_msg == NULL) in sip_copy_all_headers()
440 header = sip_search_for_header(_old_msg, NULL, NULL); in sip_copy_all_headers()
441 while (header != NULL) { in sip_copy_all_headers()
442 ret = _sip_copy_header(_new_msg, header, NULL, B_FALSE); in sip_copy_all_headers()
445 header = sip_search_for_header(_old_msg, NULL, header); in sip_copy_all_headers()
464 if (msg == NULL || sip_msg == NULL) in sip_copy_start_line()
470 if (_old_msg->sip_msg_start_line == NULL) { in sip_copy_start_line()
477 if (new_header == NULL) { in sip_copy_start_line()
503 if (_sip_msg->sip_msg_start_line == NULL) in sip_delete_start_line_locked()
507 while (header != NULL) { in sip_delete_start_line_locked()
514 _sip_msg->sip_msg_start_line = NULL; in sip_delete_start_line_locked()
520 while (_sip_msg->sip_msg_req_res != NULL) { in sip_delete_start_line_locked()
528 if (reqline->sip_parse_uri != NULL) { in sip_delete_start_line_locked()
530 reqline->sip_parse_uri = NULL; in sip_delete_start_line_locked()
549 if (sip_msg == NULL) in sip_delete_start_line()
573 while (header != NULL) { in sip_delete_all_headers()
579 _sip_msg->sip_msg_headers_start = NULL; in sip_delete_all_headers()
580 _sip_msg->sip_msg_headers_end = NULL; in sip_delete_all_headers()
597 header = sip_search_for_header(_sip_msg, header_name, NULL); in sip_delete_headers()
598 if (header == NULL) in sip_delete_headers()
600 while (header != NULL) { in sip_delete_headers()
614 if (header_name != NULL) in sip_delete_headers()
617 header = sip_search_for_header(_sip_msg, NULL, NULL); in sip_delete_headers()
630 _sip_header_t *header = NULL; in _sip_add_header()
632 if (sip_msg == NULL || new_header == NULL) in _sip_add_header()
638 if (header_name != NULL) { in _sip_add_header()
641 header = sip_search_for_header(sip_msg, header_name, NULL); in _sip_add_header()
644 while (header != NULL) { in _sip_add_header()
651 if (header == NULL) in _sip_add_header()
655 if (header != NULL) { in _sip_add_header()
660 new_header->sip_hdr_next = NULL; in _sip_add_header()
670 new_header->sip_hdr_prev = NULL; in _sip_add_header()
679 if (sip_msg->sip_msg_headers_end != NULL) { in _sip_add_header()
687 new_header->sip_hdr_next = NULL; in _sip_add_header()
690 if (sip_msg->sip_msg_headers_start != NULL) { in _sip_add_header()
698 new_header->sip_hdr_prev = NULL; in _sip_add_header()
717 if (sip_header == NULL && header_name == NULL) in _sip_get_header_functions()
718 return (NULL); in _sip_get_header_functions()
723 if (header_name == NULL) { in _sip_get_header_functions()
725 return (NULL); in _sip_get_header_functions()
730 return (NULL); in _sip_get_header_functions()
738 while (sip_header_function_table[i].header_name != NULL || in _sip_get_header_functions()
739 sip_header_function_table[i].header_short_name != NULL) { in _sip_get_header_functions()
740 if (sip_header_function_table[i].header_name != NULL && in _sip_get_header_functions()
749 header_short_name != NULL && len == in _sip_get_header_functions()
762 if (sip_header != NULL) in _sip_get_header_functions()
764 if (sip_header_function_table[i].header_name == NULL) in _sip_get_header_functions()
765 return (NULL); in _sip_get_header_functions()
776 sip_header_function_t *header_f_table = NULL; in sip_get_header_functions()
778 if (sip_header_function_table_external != NULL) { in sip_get_header_functions()
782 if (header_f_table != NULL) in sip_get_header_functions()
800 _sip_header_t *header = NULL; in sip_search_for_header()
801 char *compact_name = NULL; in sip_search_for_header()
802 char *full_name = NULL; in sip_search_for_header()
803 sip_header_function_t *header_f_table = NULL; in sip_search_for_header()
805 if (sip_msg == NULL) in sip_search_for_header()
806 return (NULL); in sip_search_for_header()
811 if (header_name != NULL) { in sip_search_for_header()
812 header_f_table = sip_get_header_functions(NULL, header_name); in sip_search_for_header()
813 if (header_f_table != NULL) { in sip_search_for_header()
816 if (full_name != NULL) in sip_search_for_header()
818 if (compact_name != NULL) in sip_search_for_header()
827 if (old_header != NULL) in sip_search_for_header()
832 while (header != NULL) { in sip_search_for_header()
851 if (full_name != NULL && (full_len <= len) && in sip_search_for_header()
866 if (compact_name != NULL && (compact_len <= len) && in sip_search_for_header()
882 if (header != NULL) { in sip_search_for_header()
884 if (header_f_table == NULL) { in sip_search_for_header()
887 if (header_f_table == NULL) in sip_search_for_header()
905 if (error != NULL) in _sip_startline_to_str()
908 if (sip_msg == NULL || sip_msg->sip_msg_start_line == NULL) { in _sip_startline_to_str()
909 if (error != NULL) in _sip_startline_to_str()
911 return (NULL); in _sip_startline_to_str()
916 if ((slstr = malloc(len + 1)) == NULL) { in _sip_startline_to_str()
918 if (error != NULL) in _sip_startline_to_str()
920 return (NULL); in _sip_startline_to_str()
939 if (error != NULL) in sip_hdr_to_str()
942 if (sip_header == NULL) { in sip_hdr_to_str()
943 if (error != NULL) in sip_hdr_to_str()
945 return (NULL); in sip_hdr_to_str()
949 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
953 if (error != NULL) in sip_hdr_to_str()
955 return (NULL); in sip_hdr_to_str()
957 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
963 if (hdrstr == NULL) { in sip_hdr_to_str()
964 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
968 if (error != NULL) in sip_hdr_to_str()
970 return (NULL); in sip_hdr_to_str()
977 if (_sip_header->sip_hdr_sipmsg != NULL) { in sip_hdr_to_str()
985 if (error != NULL) in sip_hdr_to_str()
987 return (NULL); in sip_hdr_to_str()
1001 while (param_list != NULL) { in sip_get_param_from_list()
1009 return (NULL); in sip_get_param_from_list()