summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_aspath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index 2b776d2182..6c03ba3059 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1914,7 +1914,8 @@ static const char *aspath_gettoken(const char *buf, enum as_token *token,
/* There is no match then return unknown token. */
*token = as_token_unknown;
- return p++;
+ p++;
+ return p;
}
struct aspath *aspath_str2aspath(const char *str)