diff options
author | Andrew Zaborowski <andrew.zaborowski@intel.com> | 2022-11-09 18:47:46 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2022-11-09 14:24:46 -0600 |
commit | d9d2bdca06d3cd6fc481ecd7374ac8603891af56 (patch) | |
tree | 799a77fdaa08606ebf31d3f57b78bcf20adb7218 | |
parent | da79457d9d29fec8d99e50a34452c85746523ae0 (diff) |
tls: Add missing continue in tls_load_cached_server_session
After we removed an expired session cache entry, move on to the next
entry in the loop. Ignore the removed entry in the count, in the search
for the requested session ID, etc. Not ignoring it would cause some
warnings to be logged later and other minor issues.
-rw-r--r-- | ell/tls.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1084,6 +1084,7 @@ static bool tls_load_cached_server_session(struct l_tls *tls, *group + prefix_len + 1); l_settings_remove_group(tls->session_settings, *group); changed = true; + continue; } cnt++; |