From 18abd1a808f60e2825d022a683e8b4fbc266c8c6 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 27 Apr 2021 17:26:34 +0200 Subject: Lb: stop RESET FSM when sccp_user is unbound A crash was reported in bssmap_le_tx_reset() sending a RESET with sccp_user == NULL. Looking at the issue I noticed that when the sccp_user is torn down, the RESET FSM should also be terminated. Add bssmap_reset_term_and_free() to the generic RESET FSM implementation and call from lb_stop() before sccp_user is set to NULL. Related: OS#5134 Change-Id: If412ef990fcdde8ff88098a5169e86f05cd1c7f0 --- include/osmocom/bsc/bssmap_reset.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom/bsc/bssmap_reset.h') diff --git a/include/osmocom/bsc/bssmap_reset.h b/include/osmocom/bsc/bssmap_reset.h index 560c54307..f90f5ec56 100644 --- a/include/osmocom/bsc/bssmap_reset.h +++ b/include/osmocom/bsc/bssmap_reset.h @@ -27,3 +27,4 @@ struct bssmap_reset { struct bssmap_reset *bssmap_reset_alloc(void *ctx, const char *label, const struct bssmap_reset_cfg *cfg); bool bssmap_reset_is_conn_ready(const struct bssmap_reset *bssmap_reset); +void bssmap_reset_term_and_free(struct bssmap_reset *bssmap_reset); -- cgit v1.2.3