This commit is contained in:
merlokk 2019-02-20 14:50:17 +02:00
parent 915c73bcfc
commit d81478755e

View file

@ -352,6 +352,9 @@ struct tlvdb *tlvdb_find_path(struct tlvdb *tlvdb, tlv_tag_t tag[]) {
void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other) void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
{ {
if (tlvdb == other)
return;
while (tlvdb->next) { while (tlvdb->next) {
if (tlvdb->next == other) if (tlvdb->next == other)
return; return;