1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Fix: Corrected order of locks to avoid dead-locks

This commit is contained in:
Philipp Schafft 2018-09-20 14:13:13 +00:00
parent 7b84c45a81
commit 9d120d126f

View File

@ -1171,8 +1171,8 @@ static int _handle_resources(client_t *client, char **uri)
}
}
listen_sock = listensocket_get_listener(client->con->listensocket_effective);
config = config_get_config();
listen_sock = listensocket_get_listener(client->con->listensocket_effective);
if (listen_sock) {
serverhost = listen_sock->bind_address;
serverport = listen_sock->port;