summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zserv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index fc23d4e0dd..2d68fcde87 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -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];