From 11b88ecf7e4beba7d0342578045447785f6080b5 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Tue, 2 Oct 2018 10:46:20 +0200 Subject: [PATCH] eigrpd: dead code (Coverity 1460436) Signed-off-by: F. Aragon --- eigrpd/eigrp_query.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.39.5