commit | 6a6c7f87ca3d51085f01389b36c30096da6d6417 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | Tue Nov 17 04:02:11 2020 +0700 |
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | Tue Nov 17 18:47:58 2020 +0700 |
tree | e2ba13b8265a49be80da0bf25ff09b5e64fcd061 | |
parent | 6cfef3ac266996c67764d97e0849e2df9e9c8c12 [diff] |
USSD: fix handle_ussd(): do not free() unconditionally An internal handler may want to continue session, e.g. to request more information from the MS. Let's make the handlers responsible for session state management, and check that state before calling ss_session_free(), so a session can remain alive. Before this patch ss->state was not set/used at all... Change-Id: I49262e7fe26f29dedbf126087cfb8f3bb3c548dc