Browse Source

nhrp: fix potential crash when vici profile name is not configured

Timo Teräs 2 years ago
parent
commit
b328262a46
1 changed files with 2 additions and 0 deletions
  1. 2 0
      nhrpd/nhrp_peer.c

+ 2 - 0
nhrpd/nhrp_peer.c

@@ -248,6 +248,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;