From: F. Aragon Date: Tue, 2 Oct 2018 08:46:20 +0000 (+0200) Subject: eigrpd: dead code (Coverity 1460436) X-Git-Tag: frr-7.1-dev~305^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=11b88ecf7e4beba7d0342578045447785f6080b5;p=mirror%2Ffrr.git eigrpd: dead code (Coverity 1460436) Signed-off-by: F. Aragon --- diff --git a/eigrpd/eigrp_query.c b/eigrpd/eigrp_query.c index dd4231fa00..84dcf5e2d5 100644 --- a/eigrpd/eigrp_query.c +++ b/eigrpd/eigrp_query.c @@ -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)