summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-06-26 21:00:53 +0000
committerluigi <luigi@FreeBSD.org>2002-06-26 21:00:53 +0000
commitc576432afc38d9f90886bb08916452bfa56636f2 (patch)
tree767f2c9b2a1bcd06bbf345f52f08c4cdea1bd60e /sys/netinet
parente62ef89fc1df8d45376a9512206833cdc638641e (diff)
downloadFreeBSD-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/netinet')
-rw-r--r--sys/netinet/ip_mroute.c5
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
OpenPOWER on IntegriCloud