From: <the...@us...> - 2006-12-21 09:14:56
|
Revision: 18037 http://svn.sourceforge.net/gaim/?rev=18037&view=rev Author: thekingant Date: 2006-12-21 01:14:53 -0800 (Thu, 21 Dec 2006) Log Message: ----------- Don't try to do stuff with an empty username or ICBM cookie Modified Paths: -------------- trunk/libgaim/protocols/oscar/oscar.c Modified: trunk/libgaim/protocols/oscar/oscar.c =================================================================== --- trunk/libgaim/protocols/oscar/oscar.c 2006-12-21 08:58:55 UTC (rev 18036) +++ trunk/libgaim/protocols/oscar/oscar.c 2006-12-21 09:14:53 UTC (rev 18037) @@ -2732,6 +2732,10 @@ "Message error with data %s and reason %hu\n", (data != NULL ? data : ""), reason); + if ((data == NULL) || (*data == '\0')) + /* We can't do anything if data is empty */ + return 1; + #ifdef TODOFT /* If this was a file transfer request, data is a cookie */ if ((xfer = oscar_find_xfer_by_cookie(od->file_transfers, data))) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |