summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index b929bf14..d969a69b 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -145,7 +145,7 @@ bgp_open_listeners(const char* address, unsigned short port)
while (next != NULL)
{
this = next ;
- next = strchr(address, ',') ;
+ next = strchr(this, ',') ;
if (next != NULL)
*next++ = '\0' ;