summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2018-08-16 09:49:38 +0530
committerNishant Chaprana <n.chaprana@samsung.com>2018-08-16 09:49:38 +0530
commit037a4a5e75f3fc0845a924bb94addc2549550e63 (patch)
tree07c8897245d4d510f11f7458233a889ae11b859a /src
parent18e5c44b1d7f2de0a4d78c64b0cfad940b1a33db (diff)
downloadconnman-037a4a5e75f3fc0845a924bb94addc2549550e63.tar.gz
connman-037a4a5e75f3fc0845a924bb94addc2549550e63.tar.bz2
connman-037a4a5e75f3fc0845a924bb94addc2549550e63.zip
[Fix][icmpv6_recv] No need to free data using xs_cleanup(), data is already freed in icmpv6_event()
Change-Id: I19b028f5a93f7a4efbcf6e7c92113c363d7bb534 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/inet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inet.c b/src/inet.c
index 008f3de7..93be1e78 100755
--- a/src/inet.c
+++ b/src/inet.c
@@ -1341,10 +1341,9 @@ static int icmpv6_recv(int fd, struct xs_cb_data *data)
/* Set Received Source Address from router as IPv6 Gateway Address */
char src_addr[INET6_ADDRSTRLEN];
if(inet_ntop(AF_INET6, &(saddr.sin6_addr), src_addr, INET6_ADDRSTRLEN)
- == NULL) {
- xs_cleanup(data);
+ == NULL)
return -errno;
- }
+
DBG("Received Source Address %s from router", src_addr);
/* icmpv6_recv() function can be called in two scenarios :