# HG changeset patch # User Daniel Atallah # Date 1157901239 0 # Node ID 26bca01c70765b1acf53162035c1da63c0688ece # Parent ae0f94b7f396e7e6d9c421a9aab6d9cd61db5e93 [gaim-migrate @ 17217] Fix CID 273 (NULL deref) committer: Tailor Script diff -r ae0f94b7f396 -r 26bca01c7076 libgaim/protocols/qq/recv_core.c --- a/libgaim/protocols/qq/recv_core.c Sun Sep 10 15:07:46 2006 +0000 +++ b/libgaim/protocols/qq/recv_core.c Sun Sep 10 15:13:59 2006 +0000 @@ -296,7 +296,10 @@ gint len; gc = (GaimConnection *) data; - if(gc == NULL || gc->proto_data == NULL || cond != GAIM_INPUT_READ) { + + g_return_if_fail(gc != NULL && gc->proto_data != NULL); + + if(cond != GAIM_INPUT_READ) { gaim_connection_error(gc, _("Socket error")); return; }