]> git.puffer.fish Git - matthieu/frr.git/commitdiff
force ospf checksum success
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 12 Dec 2019 01:14:47 +0000 (20:14 -0500)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 19:45:44 +0000 (14:45 -0500)
ospfd/ospf_packet.c

index a4cd3bd93e38ca778d3bca2020d13fb256de1655..ebd96a4931c9365c0126b2ae7a1648cbf1b472be 100644 (file)
@@ -2503,7 +2503,9 @@ static int ospf_check_auth(struct ospf_interface *oi, struct ospf_header *ospfh)
                                        IF_NAME(oi),
                                        lookup_msg(ospf_auth_type_str,
                                                   iface_auth_type, NULL));
+#ifndef FUZZING
                        return 0;
+#endif
                }
                if (!ospf_check_sum(ospfh)) {
                        if (IS_DEBUG_OSPF_PACKET(ospfh->type - 1, RECV))
@@ -2512,7 +2514,9 @@ static int ospf_check_auth(struct ospf_interface *oi, struct ospf_header *ospfh)
                                        "interface %s: Null auth OK, but checksum error, Router-ID %pI4",
                                        IF_NAME(oi),
                                        &ospfh->router_id);
+#ifndef FUZZING
                        return 0;
+#endif
                }
                return 1;
        case OSPF_AUTH_SIMPLE: /* RFC2328 D.5.2 */