diff options
author | luigi <luigi@FreeBSD.org> | 2002-06-26 21:00:53 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-06-26 21:00:53 +0000 |
commit | c576432afc38d9f90886bb08916452bfa56636f2 (patch) | |
tree | 767f2c9b2a1bcd06bbf345f52f08c4cdea1bd60e /sys | |
parent | e62ef89fc1df8d45376a9512206833cdc638641e (diff) | |
download | FreeBSD-src-c576432afc38d9f90886bb08916452bfa56636f2.zip FreeBSD-src-c576432afc38d9f90886bb08916452bfa56636f2.tar.gz |
Just a comment on some additional consistency checks that could
be added here.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_mroute.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 0be45ea..668038e 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -2058,6 +2058,11 @@ ip_rsvp_vif_done(so, sopt) printf("ip_rsvp_vif_done: v_rsvpd = %p so = %p\n", viftable[i].v_rsvpd, so); + /* + * XXX as an additional consistency check, one could make sure + * that viftable[i].v_rsvpd == so, otherwise passing so as + * first parameter is pretty useless. + */ viftable[i].v_rsvpd = NULL; /* * This may seem silly, but we need to be sure we don't over-decrement |