]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: swap bgp error value with file descriptor value
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 23 Sep 2021 11:57:56 +0000 (13:57 +0200)
committermergify-bot <noreply@mergify.io>
Thu, 23 Sep 2021 17:04:50 +0000 (17:04 +0000)
the values were swapped by mistake. fix it.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 046bb347811d7d2e7de361ff23c7e4bef858a2df)

bgpd/bgp_packet.c

index 62982881d8011a5876c27e8a7ad17466ee96081f..86767045a9f562965074b449329483832752148d 100644 (file)
@@ -2708,7 +2708,7 @@ int bgp_packet_process_error(struct thread *thread)
 
        if (bgp_debug_neighbor_events(peer))
                zlog_debug("%s [Event] BGP error %d on fd %d",
-                          peer->host, peer->fd, code);
+                          peer->host, code, peer->fd);
 
        /* Closed connection or error on the socket */
        if (peer->status == Established) {