Fix a typo from last commit.
authorBenjamin Cama <benoar@dolka.fr>
Tue, 19 Jul 2011 22:30:16 +0000 (00:30 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Thu, 28 Jul 2011 12:58:30 +0000 (14:58 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
bgp.c

diff --git a/bgp.c b/bgp.c
index ea15faf..f12efb1 100644 (file)
--- a/bgp.c
+++ b/bgp.c
@@ -1094,7 +1094,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
            }
 
            if (notification->error_code == BGP_ERR_OPEN
            }
 
            if (notification->error_code == BGP_ERR_OPEN
-                   && notification->subcode == BGP_ERR_OPN_UNSUP_CAP)
+                   && notification->error_subcode == BGP_ERR_OPN_UNSUP_CAP)
            {
                /* the only capability we advertise is this one, so upon receiving
                   an "unsupported capability" message, we disable IPv6 routes for
            {
                /* the only capability we advertise is this one, so upon receiving
                   an "unsupported capability" message, we disable IPv6 routes for