Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pim6sd fix advanced api bug. (sync with snap)



details:   https://anonhg.NetBSD.org/src/rev/a95a4cf82c85
branches:  trunk
changeset: 481653:a95a4cf82c85
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Feb 03 06:59:35 2000 +0000

description:
fix advanced api bug.  (sync with snap)
this is for 2292bis case, and netbsd-current is not affected - the commit
is to avoiding buggy code from spreading around.

diffstat:

 usr.sbin/pim6sd/mld6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 7328af6417bd -r a95a4cf82c85 usr.sbin/pim6sd/mld6.c
--- a/usr.sbin/pim6sd/mld6.c    Thu Feb 03 06:47:31 2000 +0000
+++ b/usr.sbin/pim6sd/mld6.c    Thu Feb 03 06:59:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mld6.c,v 1.1 2000/01/28 19:32:48 itojun Exp $  */
+/*     $NetBSD: mld6.c,v 1.2 2000/02/03 06:59:35 itojun Exp $  */
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -442,11 +442,11 @@
                log(LOG_ERR, 0, "inet6_opt_append(0) failed");
        if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1)
                log(LOG_ERR, 0, "inet6_opt_finish(0) failed");
-       hbhlen = CMSG_SPACE(hbhlen);
+       ctllen += CMSG_SPACE(hbhlen);
 #else  /* old advanced API */
        hbhlen = inet6_option_space(sizeof(raopt));
+       ctllen += hbhlen;
 #endif
-       ctllen += hbhlen;
     }
     /* extend ancillary data space (if necessary) */
     if (ctlbuflen < ctllen) {



Home | Main Index | Thread Index | Old Index