Lines Matching refs:NULL

67 		return (NULL);
78 if (str == NULL)
79 return (NULL);
108 if (new_str == NULL)
109 return (NULL);
133 if (sip_msg == NULL || hdr_name == NULL)
145 if (new_header == NULL) {
154 if (_sip_msg->sip_msg_buf != NULL)
173 if (sip_msg == NULL || str1 == NULL || str2 == NULL ||
174 (str1 != NULL && str1[0] == '\0') ||
175 (str2 != NULL && str2[0] == '\0')) {
185 if (plist == NULL) {
198 if (new_header == NULL) {
203 if (plist == NULL) {
226 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
227 if (_sip_msg->sip_msg_buf != NULL)
246 if (sip_msg == NULL || str == NULL || (str != NULL && str[0] == '\0'))
255 if (plist == NULL) {
265 if (new_header == NULL) {
269 if (plist == NULL) {
277 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
278 if (_sip_msg->sip_msg_buf != NULL)
297 if (sip_msg == NULL || (hdr_name == NULL))
310 if (digit_str == NULL)
313 if (plist == NULL) {
323 if (new_header == NULL) {
329 if (plist == NULL) {
338 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
339 if (_sip_msg->sip_msg_buf != NULL)
359 if (sip_msg == NULL || (hdr_name == NULL))
372 if (digit_str == NULL) {
376 if (plist == NULL) {
387 if (new_header == NULL) {
393 if (plist == NULL) {
403 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
404 if (_sip_msg->sip_msg_buf != NULL)
423 if (sip_msg == NULL || uri == NULL || header_name == NULL)
425 if (display_name != NULL && !add_aquot)
429 if (t == NULL)
432 if (tags != NULL) {
435 if (params != NULL)
440 if (params == NULL)
446 if (display_name == NULL) {
466 * function take two char ptrs - type and subtype - if any of them is NULL
478 if (type == NULL && subtype == NULL) {
483 if ((m_par != NULL) && (a_par != NULL)) {
490 } else if (m_par != NULL) {
495 if ((type != NULL) && (subtype != NULL)) {
498 } else if (type != NULL) {
517 * function take one char ptr, if NULL value will be set to "*"
524 if (code == NULL) {
543 if (lang == NULL) {
562 if (alert == NULL)
565 if (tmp == NULL)
585 NULL, (char)NULL);
602 if (uri == NULL)
605 if (tmp == NULL)
630 if (dis_type == NULL)
648 if (code == NULL)
651 ret = sip_add_str_to_msg(sip_msg, SIP_CONTENT_ENCODE, code, NULL,
652 (char)NULL);
668 if (lang == NULL)
670 ret = sip_add_str_to_msg(sip_msg, SIP_CONTENT_LANG, lang, NULL,
671 (char)NULL);
694 if (date == NULL)
696 ret = sip_add_str_to_msg(sip_msg, SIP_DATE, date, NULL, (char)NULL);
711 if (uri == NULL)
714 if (tmp == NULL)
732 if (sip_msg == NULL || (int)secs < 0)
735 ret = sip_add_int_to_msg(sip_msg, SIP_EXPIRE, secs, NULL);
748 if (reply_id == NULL)
750 r = sip_add_str_to_msg(sip_msg, SIP_IN_REPLY_TO, reply_id, NULL,
751 (char)NULL);
763 if (sip_msg == NULL || resp_num <= 0)
765 ret = sip_add_int_to_msg(sip_msg, SIP_RSEQ, resp_num, NULL);
777 if (sip_msg == NULL || (int)secs < 0)
779 ret = sip_add_int_to_msg(sip_msg, SIP_MIN_EXPIRE, secs, NULL);
791 if (version == NULL)
793 ret = sip_add_str_to_msg(sip_msg, SIP_MIME_VERSION, version, NULL,
794 (char)NULL);
806 if (org == NULL) {
809 ret = sip_add_str_to_msg(sip_msg, SIP_ORGANIZATION, org, NULL,
810 (char)NULL);
826 if (prio == NULL)
828 ret = sip_add_str_to_msg(sip_msg, SIP_PRIORITY, prio, NULL, (char)NULL);
843 return (sip_add_name_aspec(sip_msg, uname, addr, NULL, add_aquot,
858 if (priv_val == NULL)
860 ret = sip_add_str_to_msg(sip_msg, SIP_PRIVACY, priv_val, NULL,
861 (char)NULL);
874 if (req == NULL)
876 ret = sip_add_str_to_msg(sip_msg, SIP_REQUIRE, req, NULL, (char)NULL);
894 if (cmt == NULL) {
914 if (svr == NULL)
916 ret = sip_add_str_to_msg(sip_msg, SIP_SERVER, svr, NULL, (char)NULL);
928 if (subject == NULL) {
931 ret = sip_add_str_to_msg(sip_msg, SIP_SUBJECT, subject, NULL,
932 (char)NULL);
946 if (support == NULL) {
949 ret = sip_add_str_to_msg(sip_msg, SIP_SUPPORT, support, NULL,
950 (char)NULL);
965 if (delay == NULL) {
966 ret = sip_add_str_to_msg(sip_msg, SIP_TIMESTAMP, time, NULL,
967 (char)NULL);
970 B_FALSE, delay, NULL, ' ');
983 if (unsupport == NULL)
985 ret = sip_add_str_to_msg(sip_msg, SIP_UNSUPPORT, unsupport, NULL,
986 (char)NULL);
998 if (usr == NULL)
1000 r = sip_add_str_to_msg(sip_msg, SIP_USER_AGENT, usr, NULL, (char)NULL);
1022 if (sip_msg == NULL || addr == NULL || msg == NULL ||
1040 if (new_header == NULL) {
1048 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
1049 if (_sip_msg->sip_msg_buf != NULL)
1069 if (sip_msg == NULL || resp_num <= 0 || cseq < 0 || method <= 0 ||
1087 if (new_header == NULL) {
1096 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
1097 if (_sip_msg->sip_msg_buf != NULL)
1112 return (sip_add_str_to_msg(sip_msg, SIP_ALLOW_EVENTS, t_event, NULL,
1113 (char)NULL));
1206 return (sip_add_str_to_msg(sip_msg, SIP_AUTHEN_INFO, ainfo, NULL,
1207 (char)NULL));
1259 return (sip_add_str_to_msg(sip_msg, SIP_PROXY_REQ, opt, NULL,
1260 (char)NULL));
1286 if (sip_msg == NULL || (callid != NULL && callid[0] == '\0'))
1288 if (callid == NULL) {
1290 if (callid == NULL)
1294 ret = sip_add_str_to_msg(sip_msg, SIP_CALL_ID, callid, NULL,
1295 (char)NULL);
1309 if (sip_msg == NULL || (int)cseq < 0 || method == 0 ||
1314 sip_methods[method].name, NULL);
1356 if (via_params != NULL) {
1361 if (new_header->sip_hdr_start == NULL)
1362 return (NULL);
1377 if (via_params != NULL) {
1401 if (sip_msg == NULL || sent_protocol_transport == NULL ||
1402 sent_by_host == NULL || sent_by_port < 0) {
1415 if (new_header == NULL) {
1419 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
1420 if (_sip_msg->sip_msg_buf != NULL)
1432 if (sip_msg == NULL || (int)maxforward < 0)
1435 NULL));
1457 if (sip_msg == NULL || type == NULL || subtype == NULL)
1460 subtype, NULL, SIP_SLASH));
1472 if (_sip_msg == NULL || length < 0)
1485 if (new_header == NULL) {
1493 _sip_add_header(_sip_msg, new_header, B_TRUE, B_FALSE, NULL);
1494 if (_sip_msg->sip_msg_buf != NULL)
1515 return (sip_add_name_aspec(sip_msg, display_name, contact_uri, NULL,
1558 return (sip_add_name_aspec(sip_msg, display_name, uri, NULL, B_TRUE,
1571 return (sip_add_name_aspec(sip_msg, display_name, uri, NULL, B_TRUE,
1585 return (sip_add_name_aspec(sip_msg, display_name, addr, NULL, add_aquot,
1586 SIP_PASSERTEDID, NULL));
1598 return (sip_add_name_aspec(sip_msg, display_name, addr, NULL, add_aquot,
1599 SIP_PPREFERREDID, NULL));