diff options
author | 2014-07-19 03:40:26 +0000 | |
---|---|---|
committer | 2014-07-19 03:40:26 +0000 | |
commit | af8285ce250391dba40a3ad7d87cccf27a9b7b94 (patch) | |
tree | bd1e3f7d1f7b0bc472fb08419f8956852f67efa5 /lib/libssl/src | |
parent | Change _rs_allocate so it can combine the two regions (rs and rsx) (diff) | |
download | wireguard-openbsd-af8285ce250391dba40a3ad7d87cccf27a9b7b94.tar.xz wireguard-openbsd-af8285ce250391dba40a3ad7d87cccf27a9b7b94.zip |
Fix strtonum range to unbreak -pass fd:0
ok deraadt@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/apps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/apps.c b/lib/libssl/src/apps/apps.c index 051f6f80a60..f9e845246fb 100644 --- a/lib/libssl/src/apps/apps.c +++ b/lib/libssl/src/apps/apps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apps.c,v 1.67 2014/07/14 00:35:10 deraadt Exp $ */ +/* $OpenBSD: apps.c,v 1.68 2014/07/19 03:40:26 lteo Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -493,7 +493,7 @@ app_get_pass(BIO *err, char *arg, int keepbio) } } else if (!strncmp(arg, "fd:", 3)) { BIO *btmp; - i = strtonum(arg + 3, 1, INT_MAX, &errstr); + i = strtonum(arg + 3, 0, INT_MAX, &errstr); if (errstr) { BIO_printf(err, "Invalid file descriptor %s: %s\n", |