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:
Philipp Maier 2021-07-07 14:09:33 +02:00 committed by laforge
parent 4131a65c4d
commit 6b7afe8f57
1 changed files with 1 additions and 1 deletions

View File

@ -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
* 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]);
}