]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrp: fix potential crash when vici profile name is not configured
authorTimo Teräs <timo.teras@iki.fi>
Fri, 21 Apr 2017 11:57:57 +0000 (14:57 +0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 25 Apr 2017 12:33:43 +0000 (08:33 -0400)
nhrpd/nhrp_peer.c

index 1f624eba0b1ba4899104bc9c4d2654c7c7d4c65d..3cc91a90832886483017a414b666482c502d081d 100644 (file)
@@ -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;