From: <dat...@us...> - 2006-09-10 15:14:04
|
Revision: 17217 http://svn.sourceforge.net/gaim/?rev=17217&view=rev Author: datallah Date: 2006-09-10 08:13:59 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Fix CID 273 (NULL deref) Modified Paths: -------------- trunk/libgaim/protocols/qq/recv_core.c Modified: trunk/libgaim/protocols/qq/recv_core.c =================================================================== --- trunk/libgaim/protocols/qq/recv_core.c 2006-09-10 15:07:46 UTC (rev 17216) +++ trunk/libgaim/protocols/qq/recv_core.c 2006-09-10 15:13:59 UTC (rev 17217) @@ -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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |