]> git.puffer.fish Git - mirror/frr.git/commitdiff
Revert "bgpd: Prevent null deref"
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 13 May 2021 22:44:16 +0000 (01:44 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 3 Aug 2021 19:20:52 +0000 (22:20 +0300)
This reverts commit e80bc08944be7cbe4085c03653818139ccd616d1.

bgpd/bgp_nb_config.c

index 230ca7fc856194c22afecab4278035492ea25231..11d0f97de305ca879758e9bf26635d23f4413789 100644 (file)
@@ -6275,11 +6275,7 @@ static struct peer *bgp_peer_group_peer_lookup(struct bgp *bgp,
        struct peer_group *group = NULL;
 
        group = peer_group_lookup(bgp, peer_str);
-
-       if (group)
-               return group->conf;
-
-       return NULL;
+       return group->conf;
 }
 
 /*