fix possible error

This commit is contained in:
merlokk committed 2019-02-20 14:48:52 +02:00
1 parent 9cd0256a81
commit 915c73bcfc
1 file changed
+3
+3
View File
@@ -353,6 +353,9 @@ struct tlvdb *tlvdb_find_path(struct tlvdb *tlvdb, tlv_tag_t tag[]) {
void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
{
while (tlvdb->next) {
if (tlvdb->next == other)
return;
tlvdb = tlvdb->next;
}