]> git.pond.sub.org Git - empserver/commitdiff
Fix reject accept
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 08:30:41 +0000 (09:30 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 08:33:19 +0000 (09:33 +0100)
Instead of accepting the listed nations, rejected the nation listed
last, and accepted all the others.  Broken in commit 6844c94b, v4.3.4.

src/lib/common/nat.c

index 96d9c1ad558dff6f10154ed385bc6e9532ce2b0f..ab0613f1c385b1870227a271b30955251b798777 100644 (file)
@@ -139,7 +139,7 @@ putreject(struct natstr *np, natid them, int how, int what)
     if (how)
        np->nat_rejects[them] |= what;
     else
-       np->nat_rejects[them] &= what;
+       np->nat_rejects[them] &= ~what;
 }
 
 void