commit | d0a8ca75f24c092c0ee81a0c1a3ef7e362975d34 | [log] [tgz] |
---|---|---|
author | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | Thu Feb 18 16:47:55 2021 +0100 |
committer | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | Thu Feb 18 18:56:17 2021 +0100 |
tree | aa0965643ea5502316a621b76bad21fc2ffa08b9 | |
parent | c698e5a06dad15b5169d1e969f8db95324d5706f [diff] |
m_cleanup: set qh_link and qh_rlink to the list head This should ensure the lists are considered empty after the cleanup
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 @@ g_free(m); m = next; } + list_head->qh_link = list_head; + list_head->qh_rlink = list_head; } void m_cleanup(Slirp *slirp)