]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix heap buf overflow when adding prefix orf
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 3 Dec 2019 18:12:25 +0000 (13:12 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 16 Jan 2020 19:36:52 +0000 (14:36 -0500)
Don't lose your way

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/plist.c

index 64571a05b7ab383ca585ce3fc48d4cb4d5ebc220..a0976cd6bdd976ed29da62c8c72a0461795d07c0 100644 (file)
@@ -1891,6 +1891,8 @@ int prefix_bgp_orf_set(char *name, afi_t afi, struct orf_prefix *orfp,
        if (!plist)
                return CMD_WARNING_CONFIG_FAILED;
 
+       apply_mask(&orfp->p);
+
        if (set) {
                pentry = prefix_list_entry_make(
                        &orfp->p, (permit ? PREFIX_PERMIT : PREFIX_DENY),