fix possible error
This commit is contained in:
1 parent
9cd0256a81
commit
915c73bcfc
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user