Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist openssh: KNF for our local ...



details:   https://anonhg.NetBSD.org/src/rev/9cade4ef0b45
branches:  trunk
changeset: 378246:9cade4ef0b45
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jul 28 05:02:46 2023 +0000

description:
openssh: KNF for our local changes.

diffstat:

 crypto/external/bsd/openssh/dist/sshconnect.c |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 0e8d201a1a24 -r 9cade4ef0b45 crypto/external/bsd/openssh/dist/sshconnect.c
--- a/crypto/external/bsd/openssh/dist/sshconnect.c     Fri Jul 28 05:02:13 2023 +0000
+++ b/crypto/external/bsd/openssh/dist/sshconnect.c     Fri Jul 28 05:02:46 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sshconnect.c,v 1.34 2023/07/26 17:58:16 christos Exp $ */
+/*     $NetBSD: sshconnect.c,v 1.35 2023/07/28 05:02:46 rin Exp $      */
 /* $OpenBSD: sshconnect.c,v 1.363 2023/03/10 07:17:08 dtucker Exp $ */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
@@ -15,7 +15,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: sshconnect.c,v 1.34 2023/07/26 17:58:16 christos Exp $");
+__RCSID("$NetBSD: sshconnect.c,v 1.35 2023/07/28 05:02:46 rin Exp $");
 
 #include <sys/param.h> /* roundup */
 #include <sys/types.h>
@@ -292,14 +292,17 @@ ssh_set_socket_recvbuf(int sock)
        int socksize;
        socklen_t socksizelen = sizeof(int);
 
-       debug("setsockopt Attempting to set SO_RCVBUF to %d", options.tcp_rcv_buf);
+       debug("setsockopt Attempting to set SO_RCVBUF to %d",
+           options.tcp_rcv_buf);
        if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, buf, sz) >= 0) {
-         getsockopt(sock, SOL_SOCKET, SO_RCVBUF, &socksize, &socksizelen);
-         debug("setsockopt SO_RCVBUF: %.100s %d", strerror(errno), socksize);
-       }
-       else
+               getsockopt(sock, SOL_SOCKET, SO_RCVBUF, &socksize,
+                   &socksizelen);
+               debug("setsockopt SO_RCVBUF: %.100s %d", strerror(errno),
+                   socksize);
+       } else {
                error("Couldn't set socket receive buffer to %d: %.100s",
                    options.tcp_rcv_buf, strerror(errno));
+       }
 }
 
 /*



Home | Main Index | Thread Index | Old Index