Merged soc.2013.gobjectification branch soc.2013.gobjectification.plugins

Fri, 08 Nov 2013 05:26:50 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 08 Nov 2013 05:26:50 +0530
branch
soc.2013.gobjectification.plugins
changeset 36948
855b508c16ef
parent 36947
f8f2504a9a62 (current diff)
parent 35054
4fbc76d86745 (diff)
child 36949
06cbd6ed97ed

Merged soc.2013.gobjectification branch

--- a/libpurple/http.c	Wed Nov 06 05:59:06 2013 +0530
+++ b/libpurple/http.c	Fri Nov 08 05:26:50 2013 +0530
@@ -1117,9 +1117,10 @@
 			purple_http_conn_retry(hc);
 			return FALSE;
 		} else {
-			if (g_ascii_strcasecmp(purple_http_headers_get(
-				hc->response->headers, "Server"),
-				"YHttpServer") == 0)
+			const gchar *server = purple_http_headers_get(
+				hc->response->headers, "Server");
+			if (server &&
+				g_ascii_strcasecmp(server, "YHttpServer") == 0)
 			{
 				purple_debug_warning("http", "No more data "
 					"while parsing headers (YHttpServer "

mercurial