From 8ec0c3c125d2a6abda67eef2d990fa3ea15b94ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Apr 2017 14:57:57 +0300 Subject: [PATCH] nhrp: fix potential crash when vici profile name is not configured --- nhrpd/nhrp_peer.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5