]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Explicitly ignore return from fcntl
authordtucker@openbsd.org <dtucker@openbsd.org>
Fri, 10 Mar 2023 07:17:08 +0000 (07:17 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 12 Mar 2023 11:01:44 +0000 (22:01 +1100)
(... FD_CLOEXEC) here too.  Coverity CID 291853.

OpenBSD-Commit-ID: 99d8b3da9d0be1d07ca8dd8e98800a890349e9b5

sshconnect.c

index 7f350eea6544d0ace0f047b56701accda88dc80e..e6012f01e4d93e6785cf986ef41e0f2cc243f7e5 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.362 2023/03/05 05:34:09 dtucker Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.363 2023/03/10 07:17:08 dtucker Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -363,7 +363,7 @@ ssh_create_socket(struct addrinfo *ai)
                error("socket: %s", strerror(errno));
                return -1;
        }
-       fcntl(sock, F_SETFD, FD_CLOEXEC);
+       (void)fcntl(sock, F_SETFD, FD_CLOEXEC);
 
        /* Use interactive QOS (if specified) until authentication completed */
        if (options.ip_qos_interactive != INT_MAX)