summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_peer.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-04-21 13:57:57 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-25 14:33:43 +0200
commit8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff (patch)
treeca3194de118419797505c31e15ec88fbf07c6c84 /nhrpd/nhrp_peer.c
parentnhrp: notify 'tunnel protection' changes (diff)
downloadfrr-8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff.tar.xz
frr-8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff.zip
nhrp: fix potential crash when vici profile name is not configured
Diffstat (limited to 'nhrpd/nhrp_peer.c')
-rw-r--r--nhrpd/nhrp_peer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c
index 1f624eba0..3cc91a908 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;