From: lteo Date: Sat, 19 Jul 2014 03:40:26 +0000 (+0000) Subject: Fix strtonum range to unbreak -pass fd:0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af8285ce250391dba40a3ad7d87cccf27a9b7b94;p=openbsd Fix strtonum range to unbreak -pass fd:0 ok deraadt@ --- 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",