]> git.proxmox.com Git - mirror_frr.git/commitdiff
eigrpd: dead code (Coverity 1460436)
authorF. Aragon <paco@voltanet.io>
Tue, 2 Oct 2018 08:46:20 +0000 (10:46 +0200)
committerF. Aragon <paco@voltanet.io>
Tue, 2 Oct 2018 08:46:20 +0000 (10:46 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
eigrpd/eigrp_query.c

index dd4231fa0053f2700e2e6f0acb06f6282d0ba8d4..84dcf5e2d55a081b6dae3685aea58e12b2cf092f 100644 (file)
@@ -235,11 +235,8 @@ void eigrp_send_query(struct eigrp_interface *ei)
                }
        }
 
-       if (!has_tlv) {
-               if (ep)
-                       eigrp_packet_free(ep);
+       if (!has_tlv)
                return;
-       }
 
        if ((ei->params.auth_type == EIGRP_AUTH_TYPE_MD5)
            && ei->params.auth_keychain != NULL)