diff src/protocols/simple/sipmsg.c @ 11483:0d18fa6c3b41

[gaim-migrate @ 13725] missing ==NULL check removed a NTLM debug message missing g_strdup committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Fri, 09 Sep 2005 19:46:13 +0000
parents 617e67e1c985
children 2cf6d4cf2cb0
line wrap: on
line diff
--- a/src/protocols/simple/sipmsg.c	Fri Sep 09 19:36:31 2005 +0000
+++ b/src/protocols/simple/sipmsg.c	Fri Sep 09 19:46:13 2005 +0000
@@ -54,6 +54,7 @@
 	gchar *dummy2;
 	gchar *tmp;
 	int i=1;
+	if(!lines[0]) return NULL;
 	parts = g_strsplit(lines[0], " ", 3);
 	if(!parts[0] || !parts[1] || !parts[2]) {
 		g_strfreev(parts);
@@ -128,7 +129,7 @@
 	gchar *old;
 	GSList *cur;
 	struct siphdrelement *elem;
-	if(msg->response) out = g_strdup_printf("SIP/2.0 %d AAA\r\n", msg->response);
+	if(msg->response) out = g_strdup_printf("SIP/2.0 %d Unknown\r\n", msg->response);
 	else out = g_strdup_printf("%s %s SIP/2.0\r\n",msg->method, msg->target);
 	cur = msg->headers;
 	while(cur) {