[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


--------------090506030508010702020103
Content-Type: text/plain;
 name="yandex-Implement-per-table-protocol-hooks-in-core.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="yandex-Implement-per-table-protocol-hooks-in-core.patch"



More information about the Bird-users mailing list