summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-06-11 17:44:01 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-06-17 09:14:38 +0200
commite6b457ac06ec986f4eaaf19d67703b5d912268aa (patch)
tree303b35abeb57e7a9c441ae602ca642338ea2cb1f /bgpd/rfapi
parentbgpd: Remove double test against rfapi which is already checked (diff)
downloadfrr-e6b457ac06ec986f4eaaf19d67703b5d912268aa.tar.xz
frr-e6b457ac06ec986f4eaaf19d67703b5d912268aa.zip
bgpd: Do not test for bgp_path_info in rfapiCopyUnEncap2VPN()
Already checked. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/rfapi_import.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c
index b2732a40b..51e051d68 100644
--- a/bgpd/rfapi/rfapi_import.c
+++ b/bgpd/rfapi/rfapi_import.c
@@ -2592,10 +2592,8 @@ static void rfapiCopyUnEncap2VPN(struct bgp_path_info *encap_bpi,
* instrumentation to debug segfault of 091127
*/
vnc_zlog_debug_verbose("%s: vpn_bpi=%p", __func__, vpn_bpi);
- if (vpn_bpi) {
- vnc_zlog_debug_verbose("%s: vpn_bpi->extra=%p",
- __func__, vpn_bpi->extra);
- }
+ vnc_zlog_debug_verbose("%s: vpn_bpi->extra=%p", __func__,
+ vpn_bpi->extra);
vpn_bpi->extra->vnc.import.un_family = AF_INET;
vpn_bpi->extra->vnc.import.un.addr4 =