diff libfaim/aim_conn.c @ 283:0f14e6d8a51b

[gaim-migrate @ 293] - Good fun things here. Sometimes I think Adam does things just to make it difficult for me, I swear (j/k :) ). - I moved all the .h files into the faim/ directory because I'm tired of changing faim/aim.h to just aim.h every time Adam makes an update. - libfaim can now send messages much longer than WinAIM or TOC can. But, the length checking code is still in conversation.c, and I haven't changed it yet, mostly because I'm lazy. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 31 May 2000 03:20:11 +0000
parents 7b06ba09ffe2
children 9d258a0aa560
line wrap: on
line diff
--- a/libfaim/aim_conn.c	Wed May 31 00:57:39 2000 +0000
+++ b/libfaim/aim_conn.c	Wed May 31 03:20:11 2000 +0000
@@ -6,7 +6,7 @@
  *
  */
 
-#include <aim.h> 
+#include <faim/aim.h> 
 
 void aim_connrst(struct aim_session_t *sess)
 {
@@ -34,7 +34,8 @@
   deadconn->seqnum = 0;
   deadconn->lastactivity = 0;
   deadconn->forcedlatency = 0;
-  aim_clearhandlers(deadconn);
+  if (deadconn->handlerlist)
+    aim_clearhandlers(deadconn);
   deadconn->handlerlist = NULL;
   if (deadconn->priv)
     free(deadconn->priv);
@@ -238,6 +239,7 @@
   sess->logininfo.email = NULL;
   sess->logininfo.regstatus = 0x00;
 
+  memset(sess->conns, 0, sizeof(struct aim_conn_t)*AIM_CONN_MAX);
   aim_connrst(sess);
 
   sess->queue_outgoing = NULL;