summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-06-20 10:39:53 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-06-20 10:39:53 +0000
commitb6e277c9d2b57ead676649be77db7732ac193fc3 (patch)
tree0d9b73cbc9020014b5562368a754c97006927e43 /sys
parenta9577400dee0163e4c5ef91389e3e9872248e69b (diff)
Decrement routing socket count in MPLS detach case
While here, fix whitespace (spaces -> tabs) issue spotted by michele@ ok michele@, claudio@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/rtsock.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 358d918b89d..28f9283f6ce 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.89 2009/06/06 12:31:17 rainer Exp $ */
+/* $OpenBSD: rtsock.c,v 1.90 2009/06/20 10:39:52 blambert Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -141,6 +141,10 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
route_cb.ip_count--;
else if (af == AF_INET6)
route_cb.ip6_count--;
+#ifdef MPLS
+ else if (af == AF_MPLS)
+ route_cb.mpls_count--;
+#endif /* MPLS */
route_cb.any_count--;
}
s = splsoftnet();
@@ -170,8 +174,8 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
else if (af == AF_INET6)
route_cb.ip6_count++;
#ifdef MPLS
- else if (af == AF_MPLS)
- route_cb.mpls_count++;
+ else if (af == AF_MPLS)
+ route_cb.mpls_count++;
#endif /* MPLS */
rp->rcb_faddr = &route_src;
route_cb.any_count++;