Mercurial > pidgin
diff src/protocols/yahoo/yahoo_filexfer.c @ 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 | d6a799421657 |
children | d7b01bcfb031 |
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"))