mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
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_listen_socks();
|
||||||
close_startup_pipes();
|
close_startup_pipes();
|
||||||
ssh_signal(SIGHUP, SIG_IGN); /* will be restored after exec */
|
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],
|
logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0],
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user