]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: null check (Coverity 1470150)
authorpaco <paco@voltanet.io>
Fri, 22 Jun 2018 19:35:01 +0000 (21:35 +0200)
committerpaco <paco@voltanet.io>
Fri, 22 Jun 2018 21:03:24 +0000 (23:03 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
lib/command.c

index 4ab47e5fc25d534dcdb8c2b9d277f4182aac3439..d666e8c593df9372e71214ed9d5111882faa6484 100644 (file)
@@ -2471,6 +2471,9 @@ void command_setup_early_logging(const char *dest, const char *level)
        }
 
        token = strstr(dest, ":");
+       if (token == NULL)
+               return;
+
        token++;
 
        set_log_file(NULL, token, zlog_default->default_lvl);