changeset 13458:6e50059617d3

[gaim-migrate @ 15833] Fix CID 18 (NULL dereference) committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 08 Mar 2006 04:23:37 +0000
parents 1eed4ec0912d
children 3e27ed592e02
files src/protocols/yahoo/yahoo_filexfer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_filexfer.c	Wed Mar 08 04:11:44 2006 +0000
+++ b/src/protocols/yahoo/yahoo_filexfer.c	Wed Mar 08 04:23:37 2006 +0000
@@ -466,7 +466,7 @@
 	}
 
 	/* If this packet is an IMVIRONMENT, handle it accordingly */
-	if(!strcmp(service, "IMVIRONMENT"))
+	if(service != NULL && imv != NULL && !strcmp(service, "IMVIRONMENT"))
 	{
 		/* Check for a Doodle packet and handle it accordingly */
 		if(!strcmp(imv, "doodle;11"))