[Pkg-telepathy-commits] [libnice] 191/265: turn: Don't access list node after freeing it
Simon McVittie
smcv at debian.org
Wed May 14 12:05:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit d916e63a623d339e4f4f3671f6a87020bfab4179
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Sat Mar 29 21:23:11 2014 -0400
turn: Don't access list node after freeing it
---
socket/turn.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/socket/turn.c b/socket/turn.c
index 439a9dc..a3a920d 100644
--- a/socket/turn.c
+++ b/socket/turn.c
@@ -493,8 +493,13 @@ priv_remove_peer_from_list (GList *list, const NiceAddress *peer)
NiceAddress *address = (NiceAddress *) iter->data;
if (nice_address_equal (address, peer)) {
+ GList *prev = iter->prev;
+
nice_address_free (address);
list = g_list_delete_link (list, iter);
+ iter = prev;
+ if (iter)
+ iter = list;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list