aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2022-11-09 18:47:46 +0100
committerDenis Kenzior <denkenz@gmail.com>2022-11-09 14:24:46 -0600
commitd9d2bdca06d3cd6fc481ecd7374ac8603891af56 (patch)
tree799a77fdaa08606ebf31d3f57b78bcf20adb7218
parentda79457d9d29fec8d99e50a34452c85746523ae0 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ell/tls.c b/ell/tls.c
index 2a8d5094..d3637658 100644
--- a/ell/tls.c
+++ b/ell/tls.c
@@ -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++;