changeset 15247:8948ebd0c4b1

[gaim-migrate @ 18037] Don't try to do stuff with an empty username or ICBM cookie committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 21 Dec 2006 09:14:53 +0000
parents c9b56198e8db
children 32c0e5e94aaa
files libgaim/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/oscar/oscar.c	Thu Dec 21 08:58:55 2006 +0000
+++ b/libgaim/protocols/oscar/oscar.c	Thu Dec 21 09:14:53 2006 +0000
@@ -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))) {