artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02cd097
)
Fix bogus check. Spotted by brynet, thanks.
author
tb
<tb@openbsd.org>
Tue, 20 Feb 2018 21:11:15 +0000
(21:11 +0000)
committer
tb
<tb@openbsd.org>
Tue, 20 Feb 2018 21:11:15 +0000
(21:11 +0000)
lib/libcrypto/dh/dh_lib.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/dh/dh_lib.c
b/lib/libcrypto/dh/dh_lib.c
index
856d32c
..
638b3a1
100644
(file)
--- a/
lib/libcrypto/dh/dh_lib.c
+++ b/
lib/libcrypto/dh/dh_lib.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dh_lib.c,v 1.2
8 2018/02/20 18:01:42
tb Exp $ */
+/* $OpenBSD: dh_lib.c,v 1.2
9 2018/02/20 21:11:15
tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-330,6
+330,8
@@
int
DH_set_length(DH *dh, long length)
{
if (length < 0 || length > INT_MAX)
- dh->length = length;
+ return 0;
+
+ dh->length = length;
return 1;
}