diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2011-10-12 16:05:18 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-20 19:00:36 +0200 |
commit | 04589cdd53183bc2e3102bae95cb558dc29078ee (patch) | |
tree | b37d93594b9828eb5726812815d4fec3d39526f3 /src/inet.c | |
parent | 96dc543b4e23be2969db1295518c24317af572d1 (diff) | |
download | connman-04589cdd53183bc2e3102bae95cb558dc29078ee.tar.gz connman-04589cdd53183bc2e3102bae95cb558dc29078ee.tar.bz2 connman-04589cdd53183bc2e3102bae95cb558dc29078ee.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |