diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2023-03-10 08:17:08 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-03-12 12:01:44 +0100 |
commit | 83a56a49fd50f4acf900f934279482e4ef329715 (patch) | |
tree | 457f2a1e7f64068a1517c6b78e3515bc6ed85000 /sshconnect.c | |
parent | bounds checking for getrrsetbyname() replacement; (diff) | |
download | openssh-83a56a49fd50f4acf900f934279482e4ef329715.tar.xz openssh-83a56a49fd50f4acf900f934279482e4ef329715.zip |
upstream: Explicitly ignore return from fcntl
(... FD_CLOEXEC) here too. Coverity CID 291853.
OpenBSD-Commit-ID: 99d8b3da9d0be1d07ca8dd8e98800a890349e9b5
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c index 7f350eea6..e6012f01e 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -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) |