diff options
Diffstat (limited to 'libndp/libndp.c')
-rw-r--r-- | libndp/libndp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libndp/libndp.c b/libndp/libndp.c index ded88b4..02f7946 100644 --- a/libndp/libndp.c +++ b/libndp/libndp.c @@ -1103,7 +1103,8 @@ static int ndp_sock_recv(struct ndp *ndp) if (len < sizeof(*msg->icmp6_hdr)) { warn(ndp, "rcvd icmp6 packet too short (%luB)", len); - return 0; + err = 0; + goto free_msg; } err = ndp_msg_type_by_raw_type(&msg_type, msg->icmp6_hdr->icmp6_type); if (err) |