From 04589cdd53183bc2e3102bae95cb558dc29078ee Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 12 Oct 2011 16:05:18 +0300 Subject: [PATCH] inet: Cleanup router solicitation callback properly after error The cleanup routine must be called after an error and after calling RS callback, otherwise the timeout is not removed in right time. --- src/inet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inet.c b/src/inet.c index d898650..56f29fd 100644 --- a/src/inet.c +++ b/src/inet.c @@ -1487,6 +1487,7 @@ static int icmpv6_recv(int fd, gpointer user_data) len = recvmsg(fd, &mhdr, 0); if (len < 0) { data->callback(NULL, data->user_data); + rs_cleanup(data); return -errno; } -- 2.7.4