reject: Inline putreject() into its only caller setrej()

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-10-29 17:13:04 +02:00
parent c89ba354e3
commit 8a129dee20
3 changed files with 4 additions and 11 deletions

View file

@ -138,6 +138,9 @@ setrej(natid us, natid them, int how, int what)
if (CANT_HAPPEN(!np))
return;
putreject(np, them, how, what);
if (how)
np->nat_rejects[them] |= what;
else
np->nat_rejects[them] &= ~what;
putnat(np);
}