Module Name: src
Committed By: yamt
Date: Thu Apr 9 00:57:16 UTC 2009
Modified Files:
src/sys/kern: uipc_usrreq.c
Log Message:
0 -> NULL
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/sys/kern/uipc_usrreq.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/kern/uipc_usrreq.c
diff -u src/sys/kern/uipc_usrreq.c:1.123 src/sys/kern/uipc_usrreq.c:1.124
--- src/sys/kern/uipc_usrreq.c:1.123 Thu Apr 9 00:44:32 2009
+++ src/sys/kern/uipc_usrreq.c Thu Apr 9 00:57:15 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.123 2009/04/09 00:44:32 yamt Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.124 2009/04/09 00:57:15 yamt Exp $ */
/*-
* Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.123 2009/04/09 00:44:32 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.124 2009/04/09 00:57:15 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -985,7 +985,7 @@
KASSERT((so->so_options & SO_ACCEPTCONN) == 0 ||
so2->so_lock == uipc_lock);
if ((so2->so_options & SO_ACCEPTCONN) == 0 ||
- (so3 = sonewconn(so2, 0)) == 0) {
+ (so3 = sonewconn(so2, 0)) == NULL) {
error = ECONNREFUSED;
sounlock(so);
goto bad;