diff options
author | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | 2021-02-18 16:47:55 +0100 |
---|---|---|
committer | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | 2021-02-18 18:56:17 +0100 |
commit | d0a8ca75f24c092c0ee81a0c1a3ef7e362975d34 (patch) | |
tree | aa0965643ea5502316a621b76bad21fc2ffa08b9 /src | |
parent | c698e5a06dad15b5169d1e969f8db95324d5706f (diff) | |
download | slirp-d0a8ca75f24c092c0ee81a0c1a3ef7e362975d34.zip slirp-d0a8ca75f24c092c0ee81a0c1a3ef7e362975d34.tar.gz slirp-d0a8ca75f24c092c0ee81a0c1a3ef7e362975d34.tar.bz2 |
m_cleanup: set qh_link and qh_rlink to the list head
This should ensure the lists are considered empty after the cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/mbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,8 @@ void m_cleanup_list(struct quehead *list_head) g_free(m); m = next; } + list_head->qh_link = list_head; + list_head->qh_rlink = list_head; } void m_cleanup(Slirp *slirp) |