From 7fb29f49abb3dd6b51200bc7f5b9c6a96142fa66 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 13 Jan 2020 16:22:27 -0500 Subject: [PATCH] zebra: fix assert crash on corrupt vxlan msg Signed-off-by: Quentin Young --- zebra/zebra_vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index bfec0bb58b..ffb2528a24 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -9486,7 +9486,7 @@ void zebra_vxlan_advertise_subnet(ZAPI_HANDLER_ARGS) s = msg; STREAM_GETC(s, advertise); - vni = stream_get3(s); + STREAM_GET(&vni, s, 3); zvni = zvni_lookup(vni); if (!zvni) -- 2.39.5