mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
Always fill in the buffer on a successful return from decode_rt_routing_info().
This commit is contained in:
parent
5c65e7532f
commit
7bf77c03b8
@ -716,8 +716,10 @@ decode_rt_routing_info(netdissect_options *ndo,
|
||||
ND_TCHECK(pptr[0]);
|
||||
plen = pptr[0]; /* get prefix length */
|
||||
|
||||
if (0 == plen)
|
||||
return 1; /* default route target */
|
||||
if (0 == plen) {
|
||||
snprintf(buf, buflen, "default route target");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (32 > plen)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user