Thread: [ipfilter-cvs] ipfilter ip_auth.c,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2007-11-26 08:09:10
|
Update of /cvsroot/ipfilter/ipfilter In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30467/ipf5 Modified Files: ip_auth.c Log Message: Fix a bug reported in FreeBSD: http://www.freebsd.org/cgi/query-pr.cgi?pr=118251 And on sourceforge as: 1838530 use of ipf_global in ip_auth.c not fixed Index: ip_auth.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_auth.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ip_auth.c 26 Nov 2007 07:55:06 -0000 1.6 --- ip_auth.c 26 Nov 2007 08:09:10 -0000 1.7 *************** *** 936,949 **** RWLOCK_EXIT(&ipf_authlk); - /* - * We exit ipf_global here because a program that enters in - * here will have a lock on it and goto sleep having this lock. - * If someone were to do an 'ipf -D' the system would then - * deadlock. The catch with releasing it here is that the - * caller of this function expects it to be held when we - * return so we have to reacquire it in here. - */ - RWLOCK_EXIT(&ipf_global); - MUTEX_ENTER(&ipf_auth_mx); #ifdef _KERNEL --- 936,939 ---- *************** *** 974,978 **** #endif MUTEX_EXIT(&ipf_auth_mx); - READ_ENTER(&ipf_global); if (error == 0) goto ipf_auth_ioctlloop; --- 964,967 ---- |
From: Darren <dar...@us...> - 2014-06-28 06:47:23
|
Update of /cvsroot/ipfilter/ipfilter In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18105 Modified Files: ip_auth.c Log Message: 557 compiler warning cleanup Index: ip_auth.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_auth.c,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** ip_auth.c 13 Aug 2012 11:42:00 -0000 1.32 --- ip_auth.c 28 Jun 2014 06:47:20 -0000 1.33 *************** *** 1276,1279 **** --- 1276,1281 ---- RWLOCK_EXIT(&softa->ipf_authlk); } + #else + m = m; /* LINT */ #endif /* _KERNEL */ SPL_X(s); |