fix possible error

This commit is contained in:
merlokk 2019-02-20 14:48:52 +02:00
parent 9cd0256a81
commit 915c73bcfc

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;
}