From: Arran Cudbard-Bell Date: Wed, 5 Jul 2017 01:53:05 +0000 (-0400) Subject: Don’t leave the connection registered for writes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9aeba3dc4e8c968c2d86ebde8ce7c355383f21d;p=thirdparty%2Ffreeradius-server.git Don’t leave the connection registered for writes --- diff --git a/src/main/connection.c b/src/main/connection.c index 2435cce74cd..16fd792ebbb 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -196,6 +196,7 @@ static void _connection_writable(UNUSED fr_event_list_t *el, UNUSED int sock, UN * Connection is writable, delete the connection timer */ fr_event_timer_delete(conn->el, &conn->connection_timer); + fr_event_fd_delete(conn->el, conn->fd); ret = conn->open(conn->fd, conn->el, conn->uctx); switch (ret) { @@ -342,7 +343,6 @@ fr_connection_t *fr_connection_alloc(TALLOC_CTX *ctx, fr_event_list_t *el, char const *log_prefix, void *uctx) { - fr_connection_t *conn; rad_assert(el);