bgpd: fix error message in bgp_attr_aspath()
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index dae895d..55691fd 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -813,7 +813,7 @@
       if ((flag & BGP_ATTR_FLAG_OPTIONAL) != (require & BGP_ATTR_FLAG_OPTIONAL))
         zlog (peer->log, LOG_ERR,
             "%s attribute flag must %sbe optional %d", path_type,
-            (flag & BGP_ATTR_FLAG_OPTIONAL) ? "not " : "", flag) ;
+            CHECK_FLAG (require, BGP_ATTR_FLAG_OPTIONAL) ? "" : "not ", flag);
 
       bgp_notify_send_with_data (peer, 
 				 BGP_NOTIFY_UPDATE_ERR,