diff options
author | F. Aragon <paco@voltanet.io> | 2018-06-29 16:51:08 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-06-29 17:40:45 +0200 |
commit | 0a939f4f24fa34fea688482fbf57fb16eaf2a081 (patch) | |
tree | 3496a55b222229cd1bd6b41c01565fc6d1c3cf41 /nhrpd | |
parent | Merge pull request #2563 from pacovn/Coverity_1465494_String_not_null_termina... (diff) | |
download | frr-0a939f4f24fa34fea688482fbf57fb16eaf2a081.tar.xz frr-0a939f4f24fa34fea688482fbf57fb16eaf2a081.zip |
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>
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/vici.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nhrpd/vici.c b/nhrpd/vici.c index e6111f9d7..3bb0d8308 100644 --- a/nhrpd/vici.c +++ b/nhrpd/vici.c @@ -287,6 +287,7 @@ static void vici_recv_sa(struct vici_conn *vici, struct zbuf *msg, int event) char buf[32]; struct handle_sa_ctx ctx = { .event = event, + .msgctx.nsections = 0 }; vici_parse_message(vici, msg, parse_sa_message, &ctx.msgctx); |