mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 19:18:43 +00:00
eigrpd: Fixup some SA issues
1) strlen(buf) on an uninted value is the wrong thing to do we should be getting sizeof(buf) 2) tlv is not freed in this error case, so let's free it up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
872ed4c793
commit
2fd89ed7fc
@ -170,9 +170,11 @@ void eigrp_reply_receive(struct eigrp *eigrp, struct ip *iph,
|
||||
*/
|
||||
if (!dest) {
|
||||
char buf[PREFIX_STRLEN];
|
||||
|
||||
zlog_err("%s: Received prefix %s which we do not know about",
|
||||
__PRETTY_FUNCTION__,
|
||||
prefix2str(&dest_addr, buf, strlen(buf)));
|
||||
prefix2str(&dest_addr, buf, sizeof(buf)));
|
||||
eigrp_IPv4_InternalTLV_free(tlv);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user