mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-17 20:09:38 +00:00
nhrpd: uninitialized variable (Clang scan)
This correction fixes two bugs detected by Clang scan: Bug Group: Logic error Bug Type: Assigned value is garbage or undefined File: nhrpd/vici.c Function: vici_parse_message Lines: 100, 105 Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
62a9c814e1
commit
0a939f4f24
@ -287,6 +287,7 @@ static void vici_recv_sa(struct vici_conn *vici, struct zbuf *msg, int event)
|
|||||||
char buf[32];
|
char buf[32];
|
||||||
struct handle_sa_ctx ctx = {
|
struct handle_sa_ctx ctx = {
|
||||||
.event = event,
|
.event = event,
|
||||||
|
.msgctx.nsections = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
vici_parse_message(vici, msg, parse_sa_message, &ctx.msgctx);
|
vici_parse_message(vici, msg, parse_sa_message, &ctx.msgctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user