diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-29 03:08:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-29 03:08:11 +0000 |
commit | f75d3950e874dbb4147ee99abda8c6685572803e (patch) | |
tree | 352687b5420fd720ef8f6ee3f5a83e4536e74a4b /usr.bin/skeyinit | |
parent | 8f0594418130a54dbc0d05cbf5a09e3d616357c1 (diff) |
Add missing rip() before the call to strtonum(). Otherwise, strtonum
errors out due to the newline.
Diffstat (limited to 'usr.bin/skeyinit')
-rw-r--r-- | usr.bin/skeyinit/skeyinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |