]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
When processing ACCEPT/REJECT carrying no message, don't print
authorMartin Mares <mj@ucw.cz>
Sat, 1 Apr 2000 09:15:55 +0000 (09:15 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 1 Apr 2000 09:15:55 +0000 (09:15 +0000)
trailing newline.

I hope the fix is correct, but please check.

filter/filter.c

index cc1637eb473b6e1dd367a43dc8e376fc8f6c5732..af7ee53fa4fa80e541ecb1225fc3504a163b1b19 100644 (file)
@@ -281,7 +281,7 @@ interpret(struct f_inst *what)
     break;
   case P('p',','):
     ONEARG;
-    if (what->a2.i != F_NONL)
+    if (what->a2.i == F_NOP || (what->a2.i != F_NONL && what->a1.p))
       debug( "\n" );
 
     switch (what->a2.i) {