When pf_get_translation() fails, it should leave *sn pointer pristine,

otherwise we will panic in pf_test_rule().

PR:		182557
This commit is contained in:
Gleb Smirnoff 2014-01-06 19:05:04 +00:00
parent aa27ed4569
commit a830c4524d

View File

@ -686,6 +686,7 @@ notrans:
uma_zfree(V_pf_state_key_z, *nkp);
uma_zfree(V_pf_state_key_z, *skp);
*skp = *nkp = NULL;
*sn = NULL;
return (NULL);
}