Skip to content

Commit

Permalink
Fix SSL to continue decrypting data after renego completes
Browse files Browse the repository at this point in the history
  • Loading branch information
nanangizz committed Dec 25, 2024
1 parent e16edee commit c9c385d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pjlib/src/pj/ssl_sock_imp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,11 @@ static pj_bool_t ssock_on_data_read (pj_ssl_sock_t *ssock,
"Failed to flush delayed send"));
goto on_error;
}

/* If renego has been completed, continue reading data */
if (status == PJ_SUCCESS)
continue;

} else if (status != PJ_EPENDING) {
PJ_PERROR(1,(ssock->pool->obj_name, status,
"Renegotiation failed"));
Expand Down

0 comments on commit c9c385d

Please sign in to comment.