summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-23 02:13:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-23 02:13:19 +0000
commit1f2a591f372496b83486a637562f466acc577190 (patch)
treee36dd454433ecfe66f0006d99429a042e746a8f4
parentc20928e3271b0a40f1b3e307fea0f4e37292ab20 (diff)
error in strtonum() conversion; found by Nathanael Rensen
-rw-r--r--sbin/shutdown/shutdown.c4
1 files changed, 2 insertions, 2 deletions
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;