add codeql suppression justification for restart (#708)
This commit is contained in:
parent
c1e15ab968
commit
58150f0983
2
sshd.c
2
sshd.c
|
@ -338,7 +338,7 @@ sighup_restart(void)
|
|||
close_listen_socks();
|
||||
close_startup_pipes();
|
||||
ssh_signal(SIGHUP, SIG_IGN); /* will be restored after exec */
|
||||
execv(saved_argv[0], saved_argv);
|
||||
execv(saved_argv[0], saved_argv); // CodeQL [SM01925] false positive: restarting sshd will verify inputs via case statement in main
|
||||
logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0],
|
||||
strerror(errno));
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue