diff options
author | Martin Mares <mj@ucw.cz> | 2000-03-30 12:43:37 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-03-30 12:43:37 +0200 |
commit | 320f41735795b51c51a9f5c976a2335a9ec96e32 (patch) | |
tree | 5f4bdd3981d1d99bf4c91d14cfa1c639ebfd772e /sysdep/unix/main.c | |
parent | 3a6337ecb2f6e5c8454a8416214c60432611aaa6 (diff) | |
download | bird-320f41735795b51c51a9f5c976a2335a9ec96e32.tar bird-320f41735795b51c51a9f5c976a2335a9ec96e32.zip |
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.
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r-- | sysdep/unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |