aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjeremy marchand <jeremy.marchand@etu.u-bordeaux.fr>2021-02-18 16:47:55 +0100
committerjeremy marchand <jeremy.marchand@etu.u-bordeaux.fr>2021-02-18 18:56:17 +0100
commitd0a8ca75f24c092c0ee81a0c1a3ef7e362975d34 (patch)
treeaa0965643ea5502316a621b76bad21fc2ffa08b9 /src
parentc698e5a06dad15b5169d1e969f8db95324d5706f (diff)
downloadslirp-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbuf.c b/src/mbuf.c
index 32d3210..9da7966 100644
--- a/src/mbuf.c
+++ b/src/mbuf.c
@@ -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)