summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-10-12 13:05:18 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2011-10-20 17:00:36 (GMT)
commit04589cdd53183bc2e3102bae95cb558dc29078ee (patch)
treeb37d93594b9828eb5726812815d4fec3d39526f3 /src/inet.c
parent96dc543b4e23be2969db1295518c24317af572d1 (diff)
downloadconnman-04589cdd53183bc2e3102bae95cb558dc29078ee.zip
connman-04589cdd53183bc2e3102bae95cb558dc29078ee.tar.gz
connman-04589cdd53183bc2e3102bae95cb558dc29078ee.tar.bz2
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.
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c1
1 files changed, 1 insertions, 0 deletions
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;
}