From f75d3950e874dbb4147ee99abda8c6685572803e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 29 Nov 2015 03:08:11 +0000 Subject: Add missing rip() before the call to strtonum(). Otherwise, strtonum errors out due to the newline. --- usr.bin/skeyinit/skeyinit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/skeyinit') diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c index c6c61062a42..aff7a7dfe98 100644 --- a/usr.bin/skeyinit/skeyinit.c +++ b/usr.bin/skeyinit/skeyinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyinit.c,v 1.62 2015/11/20 20:57:48 deraadt Exp $ */ +/* $OpenBSD: skeyinit.c,v 1.63 2015/11/29 03:08:10 millert Exp $ */ /* OpenBSD S/Key (skeyinit.c) * @@ -319,6 +319,7 @@ secure_mode(int *count, char *key, char *seed, size_t seedlen, SKEY_MAX_SEQ); (void)fgets(buf, bufsiz, stdin); clearerr(stdin); + rip(buf); n = strtonum(buf, 1, SKEY_MAX_SEQ-1, &errstr); if (!errstr) break; /* Valid range */ -- cgit v1.2.3