From 8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 21 Apr 2017 14:57:57 +0300 Subject: nhrp: fix potential crash when vici profile name is not configured --- nhrpd/nhrp_peer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nhrpd') 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; -- cgit v1.2.3