From: Dario Z. <ev...@us...> - 2005-02-13 00:19:58
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4936 Modified Files: conn.c Log Message: Fixed bug #1120540 - Disconnect Error Index: conn.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** conn.c 8 Feb 2005 03:42:35 -0000 1.11 --- conn.c 13 Feb 2005 00:19:49 -0000 1.12 *************** *** 291,294 **** --- 291,295 ---- conn = g_new0(BNetConn, 1); + conn->fd = -1; gc = gaim_account_get_connection(account); *************** *** 329,332 **** --- 330,336 ---- g_return_if_fail(conn); + if (conn->fd != -1) + close(conn->fd); + g_free(conn->inbuf); |