summaryrefslogtreecommitdiff
path: root/bgpd/bgp_attr.c
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2012-01-08 14:17:42 +0000
committerPaul Jakma <paul@quagga.net>2012-01-08 14:21:55 +0000
commitf31d6927b2df4340bf9ff1cc9f20d52e168a3766 (patch)
tree638f95d929b07067f5cac70f21d40a4b94e1f8f9 /bgpd/bgp_attr.c
parent83a9a2213a73aeb9796b69327c87e89e2d3327ed (diff)
bgpd: Fix incorrect attribute type code in call to bgp_attr_malformed
Diffstat (limited to 'bgpd/bgp_attr.c')
-rw-r--r--bgpd/bgp_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 1c13d11c..92c1a09f 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -872,7 +872,7 @@ bgp_attr_aspath (struct peer *peer, bgp_size_t length,
{
zlog (peer->log, LOG_ERR,
"AS_PATH attribute must not be flagged as \"partial\" (%u)", flag);
- return bgp_attr_malformed (peer, BGP_ATTR_ORIGIN, flag,
+ return bgp_attr_malformed (peer, BGP_ATTR_AS_PATH, flag,
BGP_NOTIFY_UPDATE_ATTR_FLAG_ERR,
startp, total);
}
@@ -989,7 +989,7 @@ bgp_attr_as4_path (struct peer *peer, bgp_size_t length,
{
zlog (peer->log, LOG_ERR,
"As4-Path attribute flag isn't optional/transitive %d", flag);
- return bgp_attr_malformed (peer, BGP_ATTR_AS_PATH, flag,
+ return bgp_attr_malformed (peer, BGP_ATTR_AS4_PATH, flag,
BGP_NOTIFY_UPDATE_ATTR_FLAG_ERR,
startp, total);
}