Skip to content

Commit

Permalink
Fixes #3464
Browse files Browse the repository at this point in the history
when setting `connected_ts` set the address which is being used as value?

(cherry picked from commit a3dd31a)
  • Loading branch information
ar45 authored and liviuchircu committed Sep 11, 2024
1 parent ba2c904 commit 371ba49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/rest_client/rest_methods.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ void rcl_release_url(char *url_host, int update_conn_ts)
void **connected_ts;

connected_ts = map_get(rcl_connections, host_str);
if (connected_ts)
*connected_ts = (void *)(unsigned long)get_ticks();
if (connected_ts && *connected_ts)
*(unsigned long *)(*connected_ts) = (unsigned long)get_ticks();
}

pkg_free(url_host);
Expand Down

0 comments on commit 371ba49

Please sign in to comment.