From: deraadt Date: Thu, 23 Apr 2015 02:13:18 +0000 (+0000) Subject: error in strtonum() conversion; found by Nathanael Rensen X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=089371e786f28b49f75dd06329d8b4cdbaf5e2fa;p=openbsd error in strtonum() conversion; found by Nathanael Rensen --- diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 07f9fb22206..c06fc409a80 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shutdown.c,v 1.42 2015/04/18 18:28:37 deraadt Exp $ */ +/* $OpenBSD: shutdown.c,v 1.43 2015/04/23 02:13:18 deraadt Exp $ */ /* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */ /* @@ -440,7 +440,7 @@ getoffset(char *timearg) const char *errstr; offset = strtonum(++timearg, 0, INT_MAX, &errstr); - if (errstr); + if (errstr) badtime(); offset *= 60; shuttime = now + offset;