]> 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)
committermergify-bot <noreply@mergify.io>
Fri, 23 Jul 2021 09:12:05 +0000 (09:12 +0000)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 9ff7c74bdd9c88644a6313aebce004518cbac5b7)

isisd/isisd.c

index 7e78e0ce69daa5b5eddc89ccc560ea8c3225a5f8..a648995ec4d9074832196f06880488a6ef545af3 100644 (file)
@@ -2174,7 +2174,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;