# HG changeset patch # User Mark Doliner # Date 1166692493 0 # Node ID 8948ebd0c4b13d5bb72465d4ac1c145f9c21de34 # Parent c9b56198e8db7131d2b661668af7afaade4de88c [gaim-migrate @ 18037] Don't try to do stuff with an empty username or ICBM cookie committer: Tailor Script diff -r c9b56198e8db -r 8948ebd0c4b1 libgaim/protocols/oscar/oscar.c --- 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))) {