gtphub: ensure cleanup of peer addresses.

Upon calling gtphub_peer_del(), all addresses and ports should already have
expired (by force). Make sure the code heeds that with a so far missing
assertion.

Sponsored-by: On-Waves ehi
This commit is contained in:
Neels Hofmeyr
2015-11-20 00:04:41 +01:00
parent b6c2db569f
commit 1ed9a8673d

View File

@@ -696,6 +696,7 @@ time_t gtphub_now(void)
/* Remove a gtphub_peer from its list and free it. */
static void gtphub_peer_del(struct gtphub_peer *peer)
{
OSMO_ASSERT(llist_empty(&peer->addresses));
nr_map_clear(&peer->seq_map);
llist_del(&peer->entry);
talloc_free(peer);