This commit is contained in:
merlokk committed 2019-02-20 14:50:17 +02:00
1 parent 915c73bcfc
commit d81478755e
1 file changed
+3
+3
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)
{
if (tlvdb == other)
return;
while (tlvdb->next) {
if (tlvdb->next == other)
return;