[PATCH 2/3] * Fix BGP filters naming

Alexander V. Chernikov melifaro at ipfw.ru
Sun Nov 27 08:09:25 CET 2011


---
 filter/f-util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/filter/f-util.c b/filter/f-util.c
index 9f2eb6b..eef09da 100644
--- a/filter/f-util.c
+++ b/filter/f-util.c
@@ -61,6 +61,6 @@ filter_name(struct filter *filter)
     return "ACCEPT";
   else if (filter == FILTER_REJECT)
     return "REJECT";
-  else
-    return filter->name;
+
+  return (filter->name ? filter->name : "UNNAMED");
 }
-- 
1.7.3.2


--------------070507000102070502090107
Content-Type: text/plain;
 name="0003-Implement-general-protocol-limits-v3.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0003-Implement-general-protocol-limits-v3.patch"



More information about the Bird-users mailing list