diff src/protocols/yahoo/yahoo_filexfer.c @ 10261:d4e9ff2edc4e

[gaim-migrate @ 11405] This should fix segfault bug 1072604. Oops. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Thu, 25 Nov 2004 18:35:26 +0000
parents 8490f2e292a6
children f57369469684
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_filexfer.c	Thu Nov 25 16:09:47 2004 +0000
+++ b/src/protocols/yahoo/yahoo_filexfer.c	Thu Nov 25 18:35:26 2004 +0000
@@ -391,7 +391,7 @@
 	}
 
 	if (pkt->service == YAHOO_SERVICE_P2PFILEXFER) {
-		if (strcmp("FILEXFER", service) != 0) {
+		if (service && (strcmp("FILEXFER", service) != 0)) {
 			gaim_debug_misc("yahoo", "unhandled service 0x%02x", pkt->service);
 			return;
 		}