mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 22:26:14 +00:00
zebra: Ensure that we properly decode the zapi_route sent to us
Ensure that we have properly decoded the zapi_route sent to us and if we cannot decode, log and move on. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
af5849b662
commit
98a217f0d0
@ -1168,7 +1168,12 @@ static void zread_route_add(ZAPI_HANDLER_ARGS)
|
||||
struct ipaddr vtep_ip;
|
||||
|
||||
s = msg;
|
||||
zapi_route_decode(s, &api);
|
||||
if (zapi_route_decode(s, &api) < 0) {
|
||||
if (IS_ZEBRA_DEBUG_RECV)
|
||||
zlog_debug("%s: Unable to decode zapi_route sent",
|
||||
__PRETTY_FUNCTION__);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IS_ZEBRA_DEBUG_RECV) {
|
||||
char buf_prefix[PREFIX_STRLEN];
|
||||
|
Loading…
Reference in New Issue
Block a user