Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet req cannot be PRU_SENDOOB here as per KASSERT() ...



details:   https://anonhg.NetBSD.org/src/rev/29fe599ec863
branches:  trunk
changeset: 331151:29fe599ec863
user:      rtr <rtr%NetBSD.org@localhost>
date:      Sun Aug 03 11:44:52 2014 +0000

description:
req cannot be PRU_SENDOOB here as per KASSERT() earlier in the
rip_usrreq() function.

-       KASSERT(!control || (req == PRU_SEND || req == PRU_SENDOOB));
+       KASSERT(!control || (req == PRU_SEND));

diffstat:

 sys/netinet/raw_ip.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 62210086657a -r 29fe599ec863 sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c      Sun Aug 03 09:33:48 2014 +0000
+++ b/sys/netinet/raw_ip.c      Sun Aug 03 11:44:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip.c,v 1.140 2014/08/02 03:55:26 rtr Exp $ */
+/*     $NetBSD: raw_ip.c,v 1.141 2014/08/03 11:44:52 rtr Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.140 2014/08/02 03:55:26 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.141 2014/08/03 11:44:52 rtr Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -770,7 +770,7 @@
        KASSERT(solocked(so));
        inp = sotoinpcb(so);
 
-       KASSERT(!control || (req == PRU_SEND || req == PRU_SENDOOB));
+       KASSERT(!control || (req == PRU_SEND));
        if (inp == NULL) {
                splx(s);
                return EINVAL;



Home | Main Index | Thread Index | Old Index