Merge pull request #3117 from pacovn/Coverity_1460436_dead_code

eigrpd: dead code (Coverity 1460436)
This commit is contained in:
David Lamparter 2018-10-02 12:24:44 +02:00 committed by GitHub
commit 11c98954c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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