From 320f41735795b51c51a9f5c976a2335a9ec96e32 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 30 Mar 2000 10:43:37 +0000 Subject: Defined sk_close() which closes the socket safely even if called from socket hook. Replaces the SK_DELETED hack. Squashed a couple of bugs in handling of TCP sockets. --- sysdep/unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix/main.c') diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index c6f4893..dcd921f 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -236,8 +236,8 @@ cli_err(sock *s, int err) log(L_INFO "CLI connection dropped: %s", strerror(err)); else log(L_INFO "CLI connection closed"); - s->type = SK_DELETED; cli_free(s->data); + sk_close(s); } static int -- cgit v1.2.3