From af8285ce250391dba40a3ad7d87cccf27a9b7b94 Mon Sep 17 00:00:00 2001 From: lteo Date: Sat, 19 Jul 2014 03:40:26 +0000 Subject: [PATCH] Fix strtonum range to unbreak -pass fd:0 ok deraadt@ --- lib/libssl/src/apps/apps.c | 4 ++-- 1 file 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", -- 2.20.1