summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2023-03-29 01:07:49 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2023-03-29 01:07:49 +0000
commite466c4e269bb08e085319acff791e7beafbe2306 (patch)
tree2bfa317c710a0f6cbfce5acce7dda4ca80e648ce /usr.bin
parent787e0083a435127caa0203ae0ee9b883cf3cb1ff (diff)
Explicitly ignore return value from sshpkt_disconnect since we set our
own return value for the function. Coverity CID 291797, ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/kexgexs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexgexs.c b/usr.bin/ssh/kexgexs.c
index 6825a03d41d..ea83bb27241 100644
--- a/usr.bin/ssh/kexgexs.c
+++ b/usr.bin/ssh/kexgexs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexgexs.c,v 1.45 2023/03/05 05:34:09 dtucker Exp $ */
+/* $OpenBSD: kexgexs.c,v 1.46 2023/03/29 01:07:48 dtucker Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -93,7 +93,7 @@ input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh)
/* Contact privileged parent */
kex->dh = PRIVSEP(choose_dh(min, nbits, max));
if (kex->dh == NULL) {
- sshpkt_disconnect(ssh, "no matching DH grp found");
+ (void)sshpkt_disconnect(ssh, "no matching DH grp found");
r = SSH_ERR_ALLOC_FAIL;
goto out;
}