summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-12-11 10:29:35 +0000
committerrwatson <rwatson@FreeBSD.org>2008-12-11 10:29:35 +0000
commitec93db95da1dd504a29481bc6130137b38097edd (patch)
tree7e5de7cba05127a91b178f0019a7717d1093a0c1 /sys/netipx
parent806f871aea989e2a11f58ba2d1134c2c6c5aaf02 (diff)
downloadFreeBSD-src-ec93db95da1dd504a29481bc6130137b38097edd.zip
FreeBSD-src-ec93db95da1dd504a29481bc6130137b38097edd.tar.gz
Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through
to the SO_HEADERS_ON_OUTPUT case and set that instead. MFC after: 1 week Found with: Coverity Prevent(tm) Coverity ID: 3988
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c
index f3f9897..a42f4d2 100644
--- a/sys/netipx/ipx_usrreq.c
+++ b/sys/netipx/ipx_usrreq.c
@@ -412,6 +412,7 @@ ipx_ctloutput(struct socket *so, struct sockopt *sopt)
case SO_IPX_CHECKSUM:
mask = IPXP_CHECKSUM;
+ goto set_head;
case SO_HEADERS_ON_OUTPUT:
mask = IPXP_RAWOUT;
OpenPOWER on IntegriCloud