summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-14 18:46:46 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-14 18:46:46 +0000
commitffbc66ce39bec189207569169ceb5696fb188b1c (patch)
treed854916fd78e145298a93fc1f5ce7f6b7d734c2f /usr.sbin
parent84d0b52196af5046aee795877695071aec11231a (diff)
correct use of sizeof.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index d6eb278be7e..9aa64d7b7fc 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.c,v 1.24 2003/03/14 18:33:58 itojun Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.25 2003/03/14 18:46:45 itojun Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
@@ -1197,7 +1197,7 @@ nd6_options(struct nd_opt_hdr *hdr, int limit,
int optlen = 0;
for (; limit > 0; limit -= optlen) {
- if (limit < sizeof(struct nd_opt_hdr *)) {
+ if (limit < sizeof(struct nd_opt_hdr)) {
syslog(LOG_INFO, "<%s> short option header", __func__);
goto bad;
}