]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/nhrp_nhs.c
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / nhrpd / nhrp_nhs.c
index a7a8c20191541d326828f3bf4d228d2b30d0de5e..360972c327f54cb98038a0b648c6ff1a9c9cc516 100644 (file)
@@ -324,8 +324,6 @@ int nhrp_nhs_add(struct interface *ifp, afi_t afi, union sockunion *proto_addr,
        }
 
        nhs = XMALLOC(MTYPE_NHRP_NHS, sizeof(struct nhrp_nhs));
-       if (!nhs)
-               return NHRP_ERR_NO_MEMORY;
 
        *nhs = (struct nhrp_nhs){
                .afi = afi,