From f8ac50207115be146f19e63e07e40e2941fa3c2c Mon Sep 17 00:00:00 2001 From: mid Date: Thu, 17 Aug 2000 14:12:07 +0000 Subject: [PATCH] - Thu Aug 17 14:04:18 UTC 2000 - Fix the fd closing bug introduced last week --- CHANGES | 3 +++ Makefile | 2 +- aim_conn.c | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 2ae595f..9b2faf3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ No release numbers ------------------ + - Thu Aug 17 14:04:18 UTC 2000 + - Fix the fd closing bug introduced last week + - Tue Aug 8 04:25:35 UTC 2000 - Preserve subtype and priv after aim_conn_close diff --git a/Makefile b/Makefile index fec585b..0bae614 100644 --- a/Makefile +++ b/Makefile @@ -55,4 +55,4 @@ cleanutils: $(MAKE) clean clean: cleanutils - rm -f $(LIBFAIM_OBJECTS) $(SONAME) libfaim.a *~ core + rm -f $(LIBFAIM_OBJECTS) $(SONAME) libfaim.a *~ core \ No newline at end of file diff --git a/aim_conn.c b/aim_conn.c index a815e33..f31fb8a 100644 --- a/aim_conn.c +++ b/aim_conn.c @@ -102,7 +102,9 @@ void aim_conn_kill(struct aim_session_t *sess, struct aim_conn_t **deadconn) /* XXX: do we need this for txqueue too? */ aim_rxqueue_cleanbyconn(sess, *deadconn); - aim_conn_init(*deadconn); + aim_conn_close(*deadconn); + if ((*deadconn)->priv) + free((*deadconn)->priv); free(*deadconn); deadconn = NULL; -- 2.45.2