]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix uninitialized variable when searching for LSP
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 22 Jun 2021 14:53:26 +0000 (17:53 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 22 Jun 2021 14:53:26 +0000 (17:53 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isisd.c

index 7f56903fc9be3745b6ded94eef59db44c4c6eee0..88ebd171dc89c1646289e4739092d6cd8bf68fe4 100644 (file)
@@ -2172,7 +2172,7 @@ struct isis_lsp *lsp_for_arg(struct lspdb_head *head, const char *argv,
                             struct isis *isis)
 {
        char sysid[255] = {0};
-       uint8_t number[3];
+       uint8_t number[3] = {0};
        const char *pos;
        uint8_t lspid[ISIS_SYS_ID_LEN + 2] = {0};
        struct isis_dynhn *dynhn;