From: Timo Teräs Date: Fri, 21 Apr 2017 11:57:57 +0000 (+0300) Subject: nhrp: fix potential crash when vici profile name is not configured X-Git-Tag: frr-3.0-rc0~70^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff;p=mirror%2Ffrr.git nhrp: fix potential crash when vici profile name is not configured --- diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 1f624eba0b..3cc91a9083 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -250,6 +250,8 @@ int nhrp_peer_check(struct nhrp_peer *p, int establish) return 0; if (p->requested) return 0; + if (!nifp->ipsec_profile) + return 0; if (sockunion_family(&vc->local.nbma) == AF_UNSPEC) return 0;