summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/packet.c b/packet.c
index 02b629f30..6e7e574ab 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#include "includes.h" 39#include "includes.h"
40RCSID("$OpenBSD: packet.c,v 1.110 2003/09/19 09:02:02 markus Exp $"); 40RCSID("$OpenBSD: packet.c,v 1.111 2003/09/19 11:33:09 markus Exp $");
41 41
42#include "openbsd-compat/sys-queue.h" 42#include "openbsd-compat/sys-queue.h"
43 43
@@ -165,8 +165,6 @@ packet_set_connection(int fd_in, int fd_out)
165 buffer_init(&incoming_packet); 165 buffer_init(&incoming_packet);
166 TAILQ_INIT(&outgoing); 166 TAILQ_INIT(&outgoing);
167 } 167 }
168 /* Kludge: arrange the close function to be called from fatal(). */
169 fatal_add_cleanup((void (*) (void *)) packet_close, NULL);
170} 168}
171 169
172/* Returns 1 if remote host is connected via socket, 0 if not. */ 170/* Returns 1 if remote host is connected via socket, 0 if not. */
@@ -1338,7 +1336,6 @@ packet_disconnect(const char *fmt,...)
1338 1336
1339 /* Close the connection. */ 1337 /* Close the connection. */
1340 packet_close(); 1338 packet_close();
1341
1342 fatal_cleanup(); 1339 fatal_cleanup();
1343} 1340}
1344 1341