summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 19:37:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 19:37:54 +0000
commit3a5d4ff66964274d86b113bb23a86be90553bef8 (patch)
treeb3d65e13779bba2a0b7e9fa8b8be6e056b547f1d /usr.sbin
parentd05235ec65c79c30e50fb4dc323019cbebe9c923 (diff)
NSIG is 1 beyond the last signal, so <= is an incorrect check.
found by parfait, ok guenther
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/afs/src/lwp/iomgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/lwp/iomgr.c b/usr.sbin/afs/src/lwp/iomgr.c
index a072a103556..03a78907903 100644
--- a/usr.sbin/afs/src/lwp/iomgr.c
+++ b/usr.sbin/afs/src/lwp/iomgr.c
@@ -501,7 +501,7 @@ SignalSignals (void)
sigProc[i] = 0;
}
- for (i = 1; i <= NSIG; ++i) /* forall !badsig(i) */
+ for (i = 1; i < NSIG; ++i) /* forall !badsig(i) */
if ((sigsHandled & mysigmask(i)) && sigDelivered[i] == TRUE) {
sigDelivered[i] = FALSE;
LWP_NoYieldSignal (sigEvents[i]);