commit | 722f2b4161b01aceb37ab0b2c41ab09b92c4e93f | [log] [tgz] |
---|---|---|
author | Stefan Sperling <ssperling@sysmocom.de> | Fri Sep 28 14:26:35 2018 +0200 |
committer | Stefan Sperling <ssperling@sysmocom.de> | Fri Sep 28 14:26:35 2018 +0200 |
tree | 02e8dc698be56f99e5559d6de52da63ab0d3634a | |
parent | e2497f70bb8ebbeb1dc6ea2b68d5618ef63fe8dc [diff] |
fix a use-after-free in msc_mgcp.c:_handle_error() Move code which needs to test the mgcp_ctx->free_ctx flag upwards such that it runs before we're calling functions which will potentially free mgcp_ctx. The code being moved up takes effect only in case mgcp_ctx won't be freed, so there should be no functional difference. Change-Id: I5df17c19e2a68c019f7eaf582b14585caa54b32a Related: OS#2885