Skip to content

Commit

Permalink
isisd: Revert the modifications to the link list
Browse files Browse the repository at this point in the history
Accessing a link-list that is being deleted should not be authorized. 

Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>
  • Loading branch information
zhou-run authored May 28, 2024
1 parent e54e2dd commit abbb4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void list_delete_all_node(struct list *list)
next = node->next;
if (*list->del)
(*list->del)(node->data);
list_delete_node(list, node);
listnode_free(list, node);
}
list->head = list->tail = NULL;
list->count = 0;
Expand Down

0 comments on commit abbb4a0

Please sign in to comment.