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:
glebius 2011-11-30 08:47:17 +00:00
parent dbe3a72999
commit 980901bba2

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