Module Name: src Committed By: christos Date: Sat Mar 13 23:03:39 UTC 2010
Modified Files: src/sys/kern: uipc_accf.c Log Message: call accept_filter_init int setopt so that don't use an uninitialized lock from the setsockopt path. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/uipc_accf.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_accf.c diff -u src/sys/kern/uipc_accf.c:1.10 src/sys/kern/uipc_accf.c:1.11 --- src/sys/kern/uipc_accf.c:1.10 Thu Sep 17 04:09:49 2009 +++ src/sys/kern/uipc_accf.c Sat Mar 13 18:03:39 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_accf.c,v 1.10 2009/09/17 08:09:49 pooka Exp $ */ +/* $NetBSD: uipc_accf.c,v 1.11 2010/03/13 23:03:39 christos Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -58,7 +58,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uipc_accf.c,v 1.10 2009/09/17 08:09:49 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_accf.c,v 1.11 2010/03/13 23:03:39 christos Exp $"); #define ACCEPT_FILTER_MOD @@ -288,6 +288,8 @@ struct so_accf *newaf; int error; + accept_filter_init(); + if (sopt == NULL || sopt->sopt_size == 0) { solock(so); return accept_filt_clear(so);