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 aim-toc.c,1.33,1.34


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

Update of /cvsroot/ayttm/ayttm/modules/aim-toc
In directory subversions:/tmp/cvs-serv20920/modules/aim-toc

Modified Files:
        aim-toc.c 
Log Message:
Fix segfault (I'm really stupid - explicit callback with NULL and not
checking it :( )



Index: aim-toc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/aim-toc.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- aim-toc.c   26 Mar 2003 16:57:37 -0000      1.33
+++ aim-toc.c   26 Mar 2003 19:27:56 -0000      1.34
@@ -733,7 +733,12 @@
 static void eb_aim_logged_in (toc_conn *conn)
 {
        struct eb_aim_local_account_data * alad;
-       eb_local_account *ela = find_local_account_by_handle(conn->username, 
SERVICE_INFO.protocol_id);
+       eb_local_account *ela = NULL;
+       
+       if (!conn)
+               return;
+       
+       ela = find_local_account_by_handle(conn->username, 
SERVICE_INFO.protocol_id);
        alad = (struct eb_aim_local_account_data 
*)ela->protocol_local_account_data;
        alad->conn = conn;
        





reply via email to

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