diff mbox series

[4/4] tls: Add missing continue in tls_load_cached_server_session

Message ID 20221109174746.569046-4-andrew.zaborowski@intel.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/4] tls: Allow ServerHello extensions when resuming session | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

Andrew Zaborowski Nov. 9, 2022, 5:47 p.m. UTC
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.
---
 ell/tls.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/ell/tls.c b/ell/tls.c
index 2a8d509..d363765 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++;