Module Name:    src
Committed By:   snj
Date:           Sun May 10 20:46:58 UTC 2009

Modified Files:
        src/sys/netinet [netbsd-5-0]: in_pcb.c

Log Message:
Apply patch (requested by sborrill in ticket #745):
Fix compilation with IPNOPRIVPORTS option.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.129.10.1 src/sys/netinet/in_pcb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/in_pcb.c
diff -u src/sys/netinet/in_pcb.c:1.129 src/sys/netinet/in_pcb.c:1.129.10.1
--- src/sys/netinet/in_pcb.c:1.129	Sat Oct 11 13:40:57 2008
+++ src/sys/netinet/in_pcb.c	Sun May 10 20:46:58 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: in_pcb.c,v 1.129 2008/10/11 13:40:57 pooka Exp $	*/
+/*	$NetBSD: in_pcb.c,v 1.129.10.1 2009/05/10 20:46:58 snj Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.129 2008/10/11 13:40:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.129.10.1 2009/05/10 20:46:58 snj Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -232,7 +232,9 @@
 	struct sockaddr_in *sin = NULL; /* XXXGCC */
 	u_int16_t lport = 0;
 	int wild = 0, reuseport = (so->so_options & SO_REUSEPORT);
+#ifndef IPNOPRIVPORTS
 	kauth_cred_t cred = l->l_cred;
+#endif
 
 	if (inp->inp_af != AF_INET)
 		return (EINVAL);

Reply via email to