NetBSD-Bugs archive

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

Re: PR/53036 CVS commit: src/sys/dist/pf/net



Christos Zoulas wrote:
> Ok, how about this then?
> 
> christos
> Index: uipc_socket2.c
> ===================================================================
> RCS file: /cvsroot/src/sys/kern/uipc_socket2.c,v
> retrieving revision 1.126
> diff -u -u -r1.126 uipc_socket2.c
> --- uipc_socket2.c	6 Jul 2017 17:42:39 -0000	1.126
> +++ uipc_socket2.c	19 Feb 2018 22:49:37 -0000
> @@ -356,6 +356,9 @@
>  	}
>  	KASSERT(solocked2(head, so));
>  
> +	so->so_cred = head->so_cred;
> +	kauth_cred_hold(so->so_cred);
> +
>  	/*
>  	 * Insert into the queue.  If ready, update the connection status
>  	 * and wake up any waiters, e.g. processes blocking on accept().

I assume this change isn't needed. My server is running fine with your
	if (so == NULL | so->so_cred == NULL) return -1;
change.

-- 
Alex


Home | Main Index | Thread Index | Old Index