[PATCH] libosmo-netif[master]: stream: When destroying, make sure to kill reconnect timer

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Mar 16 23:24:30 UTC 2017


Review at  https://gerrit.osmocom.org/2112

stream: When destroying, make sure to kill reconnect timer

if osmo_stream_cli_destroy() is called while the reconnect timer is
running, we would end up in a crash.

Change-Id: If6597130f472f1e2b8d9682002250ecd54675bb0
---
M src/stream.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/12/2112/1

diff --git a/src/stream.c b/src/stream.c
index de00f52..84580af 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -294,6 +294,7 @@
 
 void osmo_stream_cli_destroy(struct osmo_stream_cli *cli)
 {
+	osmo_timer_del(&cli->timer);
 	talloc_free(cli);
 }
 

-- 
To view, visit https://gerrit.osmocom.org/2112
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If6597130f472f1e2b8d9682002250ecd54675bb0
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list