diff options
author | 2009-01-29 21:00:05 +0000 | |
---|---|---|
committer | 2009-01-29 21:00:05 +0000 | |
commit | 0291fc2ba7caefbbad41dd26247fdae15a11cbe6 (patch) | |
tree | 00cbda0ebf50ad4b155b3d8733edcc7e4926ca52 | |
parent | Correctly byte-swap the link state ID when building Intra-Area-Prefix (diff) | |
download | wireguard-openbsd-0291fc2ba7caefbbad41dd26247fdae15a11cbe6.tar.xz wireguard-openbsd-0291fc2ba7caefbbad41dd26247fdae15a11cbe6.zip |
Oops, correct logic when requested font index is out of bounds. Thankfully
it's a can't happen situation.
-rw-r--r-- | sys/dev/ic/sti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c index aba46b0d775..fe7c82cc4b7 100644 --- a/sys/dev/ic/sti.c +++ b/sys/dev/ic/sti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sti.c,v 1.57 2009/01/28 17:37:40 miod Exp $ */ +/* $OpenBSD: sti.c,v 1.58 2009/01/29 21:00:05 miod Exp $ */ /* * Copyright (c) 2000-2003 Michael Shalayeff @@ -670,7 +670,7 @@ rescan: * If our font index was bogus, we did not find the expected font. * In this case, pick the first one and be done with it. */ - if (addr == 0) { + if (fp->next == 0) { fontindex = 0; goto rescan; } |