mgw_main: fix loop that resets all endpoints
The loop that resets all endpoints in read_call_agent() starts counting at endpoint index 1, but it should begin counting at index 0 Change-Id: I82a385e547e54d82eff95213652317ed2fdaadd8
This commit is contained in:
parent
4131a65c4d
commit
6b7afe8f57
|
@ -243,7 +243,7 @@ static int read_call_agent(struct osmo_fd *fd, unsigned int what)
|
||||||
|
|
||||||
/* Walk over all endpoints and trigger a release, this will release all
|
/* Walk over all endpoints and trigger a release, this will release all
|
||||||
* endpoints, possible open connections are forcefully dropped */
|
* endpoints, possible open connections are forcefully dropped */
|
||||||
for (i = 1; i < reset_trunk->number_endpoints; ++i)
|
for (i = 0; i < reset_trunk->number_endpoints; ++i)
|
||||||
mgcp_endp_release(reset_trunk->endpoints[i]);
|
mgcp_endp_release(reset_trunk->endpoints[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue