summaryrefslogtreecommitdiffstats
path: root/sftp.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2023-03-31 06:45:08 +0200
committerDarren Tucker <dtucker@dtucker.net>2023-03-31 07:17:46 +0200
commit6b73aa29035991d1448a1a76f63ac152a6bf931c (patch)
tree6c3f97e53c7357ffd4a80113877c12514056e237 /sftp.c
parentupstream: Return immediately from get_sock_port (diff)
downloadopenssh-6b73aa29035991d1448a1a76f63ac152a6bf931c.tar.xz
openssh-6b73aa29035991d1448a1a76f63ac152a6bf931c.zip
upstream: Explictly ignore return codes
where we don't check them. OpenBSD-Commit-ID: 1ffb03038ba1b6b72667be50cf5e5e396b5f2740
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index 07b46c7f7..13d05793c 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.231 2023/03/29 00:59:08 dtucker Exp $ */
+/* $OpenBSD: sftp.c,v 1.232 2023/03/31 04:45:08 dtucker Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -225,7 +225,7 @@ killchild(int signo)
pid = sshpid;
if (pid > 1) {
kill(pid, SIGTERM);
- waitpid(pid, NULL, 0);
+ (void)waitpid(pid, NULL, 0);
}
_exit(1);