This was causing some weird prefixes to pop up in my log files. One
alternate solution would be to call apply_mask() on the prefix, but
memcpy() is faster and just enough in this case.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
while (l < length) {
flags = stream_getw(s);
+ memset(&p, 0, sizeof(p));
p.family = stream_getw(s);
if (p.family != AF_INET && p.family != AF_INET6) {
zlog_err(
while (l < length) {
// flags = stream_getw(s);
(void)stream_getw(s);
+ memset(&p, 0, sizeof(p));
p.family = stream_getw(s);
if (p.family != AF_INET && p.family != AF_INET6) {
zlog_err(