From 1985cbf3ef4e0d0790eafa277e9f06617a761445 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 25 Feb 2014 11:08:27 +0100 Subject: [PATCH] asyncsendto: remove failed sendto() from queue --- miniupnpd/asyncsendto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniupnpd/asyncsendto.c b/miniupnpd/asyncsendto.c index 4a79bc0..faae87e 100644 --- a/miniupnpd/asyncsendto.c +++ b/miniupnpd/asyncsendto.c @@ -181,6 +181,9 @@ int try_sendto(fd_set * writefds) continue; } /* uncatched error */ + /* remove from the list */ + LIST_REMOVE(elt, entries); + free(elt); return n; } else { /* remove from the list */