summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/dh/dh_lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c
index 856d32c1b6..638b3a18fc 100644
--- a/src/lib/libcrypto/dh/dh_lib.c
+++ b/src/lib/libcrypto/dh/dh_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh_lib.c,v 1.28 2018/02/20 18:01:42 tb Exp $ */ 1/* $OpenBSD: dh_lib.c,v 1.29 2018/02/20 21:11:15 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -330,6 +330,8 @@ int
330DH_set_length(DH *dh, long length) 330DH_set_length(DH *dh, long length)
331{ 331{
332 if (length < 0 || length > INT_MAX) 332 if (length < 0 || length > INT_MAX)
333 dh->length = length; 333 return 0;
334
335 dh->length = length;
334 return 1; 336 return 1;
335} 337}