From f320e7593fb8357a006bf8bb14b703fec7853a08 Mon Sep 17 00:00:00 2001 From: mbuhl Date: Thu, 10 Nov 2022 10:47:30 +0000 Subject: [PATCH] A theoretical path exists where ext.data1 is not initialized by parseextcommunity but used afterwards. Found by codechecker. OK claudio --- usr.sbin/bgpctl/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index df79566a933..b03e4dcf24e 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.117 2022/10/17 16:51:36 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.118 2022/11/10 10:47:30 mbuhl Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -719,7 +719,7 @@ match_token(int *argc, char **argv[], const struct token table[]) case RD: if (word != NULL && wordlen > 0) { char *p = strdup(word); - struct community ext; + struct community ext = { 0 }; uint64_t rd; if (p == NULL) -- 2.20.1