Skip to content

Commit

Permalink
PROTON-2736: tls library - stay in decrypt loop long enough to finali…
Browse files Browse the repository at this point in the history
…ze reads and state vars
  • Loading branch information
Cliff Jansen committed May 14, 2023
1 parent 939a48f commit e637082
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions c/src/tls/openssl.c
Expand Up @@ -2166,9 +2166,6 @@ static void decrypt(pn_tls_t *tls) {
}
}

if (tls->pn_tls_err || tls->dec_closed)
return;

// Done if not possible to move any more bytes from input to output bufs
if ( (tls->dec_closed || !pending || tls->dec_wblocked) /* write side */ &&
(!curr_result || tls->dec_rblocked) ) /* read side */ {
Expand All @@ -2181,8 +2178,6 @@ static void decrypt(pn_tls_t *tls) {
tls->dec_rpending = (pcount == 1);
if (pcount <= 0) {
check_error_reason(tls, pcount);
if (tls->pn_tls_err || tls->dec_closed)
return;
}

// Peek may have made more room in buffer (i.e. handshake followed by large
Expand Down

0 comments on commit e637082

Please sign in to comment.