ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.12,1.13


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.12,1.13
Date: Wed, 26 Mar 2003 14:27:58 -0500

Update of /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc
In directory subversions:/tmp/cvs-serv20920/modules/aim-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/aim-toc/libtoc/libtoc.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- libtoc.c    26 Mar 2003 13:17:58 -0000      1.12
+++ libtoc.c    26 Mar 2003 19:27:56 -0000      1.13
@@ -1211,8 +1211,8 @@
        
        if ( conn->fd < 0 || error)
        {
-               g_free(conn);
-               toc_logged_in(NULL);
+               conn->fd=-1;
+               toc_logged_in(conn);
        }
 
        /* Client sends "FLAPON\r\n\r\n" */
@@ -1232,7 +1232,8 @@
        else
        {
                fprintf(stderr, "Error!  get_flap failed\n");
-               toc_logged_in(NULL);
+               conn->fd=-1;
+               toc_logged_in(conn);
        }
 
        buff[10] = 0;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]