[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.10,1.11
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.10,1.11 |
Date: |
Wed, 26 Mar 2003 14:27:58 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/icq-toc/libtoc
In directory subversions:/tmp/cvs-serv20920/modules/icq-toc/libtoc
Modified Files:
libtoc.c
Log Message:
Fix segfault (I'm really stupid - explicit callback with NULL and not
checking it :( )
Index: libtoc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/icq-toc/libtoc/libtoc.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- libtoc.c 26 Mar 2003 13:17:58 -0000 1.10
+++ libtoc.c 26 Mar 2003 19:27:56 -0000 1.11
@@ -1210,8 +1210,8 @@
if ( conn->fd < 0 || error)
{
- g_free(conn);
- icqtoc_logged_in(NULL);
+ conn->fd=-1;
+ icqtoc_logged_in(conn);
}
/* Client sends "FLAPON\r\n\r\n" */
@@ -1231,7 +1231,8 @@
else
{
fprintf(stderr, "Error! get_flap failed\n");
- icqtoc_logged_in(NULL);
+ conn->fd=-1;
+ icqtoc_logged_in(conn);
}
buff[10] = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.10,1.11,
Colin Leroy <address@hidden> <=