aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/dh.c')
-rw-r--r--crypto/openssh/dh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/openssh/dh.c b/crypto/openssh/dh.c
index ce2eb4725e65..168dea1dd648 100644
--- a/crypto/openssh/dh.c
+++ b/crypto/openssh/dh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dh.c,v 1.74 2021/04/03 06:18:40 djm Exp $ */
+/* $OpenBSD: dh.c,v 1.75 2024/12/03 16:27:53 dtucker Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
*
@@ -197,9 +197,9 @@ choose_dh(int min, int wantbits, int max)
if (bestcount == 0) {
fclose(f);
- logit("WARNING: no suitable primes in %s",
- get_moduli_filename());
- return (dh_new_group_fallback(max));
+ logit("WARNING: no suitable primes (size %d/%d/%d) in %s",
+ min, wantbits, max, get_moduli_filename());
+ return NULL;
}
which = arc4random_uniform(bestcount);