summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inet.c')
-rwxr-xr-xsrc/inet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inet.c b/src/inet.c
index 008f3de..93be1e7 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 :