Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/rtadvd Pull up revision 1.28 (requested by ito...



details:   https://anonhg.NetBSD.org/src/rev/1805a2857ed4
branches:  netbsd-1-6
changeset: 530254:1805a2857ed4
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 02 15:22:02 2003 +0000

description:
Pull up revision 1.28 (requested by itojun in ticket #1212):
correct use of sizeof

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4baacda20850 -r 1805a2857ed4 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Mon Jun 02 15:21:03 2003 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Mon Jun 02 15:22:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.17.2.1 2003/06/02 15:21:03 tron Exp $     */
+/*     $NetBSD: rtadvd.c,v 1.17.2.2 2003/06/02 15:22:02 tron Exp $     */
 /*     $KAME: rtadvd.c,v 1.63 2002/05/21 23:33:01 itojun Exp $ */
 
 /*
@@ -1201,7 +1201,7 @@
        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;
                }



Home | Main Index | Thread Index | Old Index