add codeql suppression justification for restart (#708)

This commit is contained in:
Tess Gauthier 2023-12-13 11:27:41 -05:00 committed by GitHub
parent c1e15ab968
commit 58150f0983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
sshd.c
View File

@ -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);