Return value should be conditional on return value of pfsync_defer_ptr()

PR:		kern/162947
Submitted by:	Matthieu Kraus <matthieu.kraus s2008.tu-chemnitz.de>
This commit is contained in:
Gleb Smirnoff 2011-11-30 08:47:17 +00:00
parent df62aec1a0
commit c53680a8ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228150

View File

@ -3770,8 +3770,8 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction,
* replies through it.
*/
#ifdef __FreeBSD__
if (pfsync_defer_ptr != NULL)
pfsync_defer_ptr(*sm, m);
if (pfsync_defer_ptr != NULL &&
pfsync_defer_ptr(*sm, m))
#else
if (pfsync_defer(*sm, m))
#endif