libmsc/mncc_call.c: fix uninitialized access of stack memory

Change-Id: I5f561d9682c9fb87e4837430063095ef2cb7bd5f
Fixes: CID#198405
This commit is contained in:
Vadim Yanitskiy 2019-05-11 04:53:23 +07:00 committed by Harald Welte
parent 444771dae2
commit c5a8e9f19a
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ int mncc_call_set_rtp_stream(struct mncc_call *mncc_call, struct rtp_stream *rtp
void mncc_call_detach_rtp_stream(struct mncc_call *mncc_call)
{
struct rtp_stream *rtps = mncc_call->rtps;
struct osmo_sockaddr_str clear;
struct osmo_sockaddr_str clear = { 0 };
if (!rtps)
return;
mncc_call->rtps = NULL;