Skip to content

Commit

Permalink
Bugfix: SSM: Use client_next member consistently when working with st…
Browse files Browse the repository at this point in the history
…ratumsrv_connlist
  • Loading branch information
luke-jr committed Sep 10, 2014
1 parent 6586baa commit ad74bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver-stratum.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void stratumsrv_client_changed_diff(struct proxy_client * const client)
{
int connections_affected = 0, connections_changed = 0;
struct stratumsrv_conn_userlist *ule, *ule2;
LL_FOREACH(client->stratumsrv_connlist, ule)
LL_FOREACH2(client->stratumsrv_connlist, ule, client_next)
{
struct stratumsrv_conn * const conn = ule->conn;

Expand Down Expand Up @@ -596,7 +596,7 @@ void stratumsrv_client_close(struct stratumsrv_conn * const conn)
{
struct proxy_client * const client = ule->client;
LL_DELETE(conn->authorised_users, ule);
LL_DELETE(client->stratumsrv_connlist, ule);
LL_DELETE2(client->stratumsrv_connlist, ule, client_next);
free(ule);
}
free(conn);
Expand Down

0 comments on commit ad74bd7

Please sign in to comment.