Skip to content

Commit

Permalink
ITS#8650 retry gnutls_handshake after GNUTLS_E_AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
rtandy committed May 6, 2017
1 parent cc79503 commit 7b5181d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/libldap/tls_g.c
Expand Up @@ -388,7 +388,9 @@ tlsg_session_accept( tls_session *session )
tlsg_session *s = (tlsg_session *)session;
int rc;

rc = gnutls_handshake( s->session );
for ( rc = gnutls_handshake ( s->session );
rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN;
rc = gnutls_handshake ( s->session ) );
if ( rc == 0 && s->ctx->reqcert != LDAP_OPT_X_TLS_NEVER ) {
const gnutls_datum_t *peer_cert_list;
unsigned int list_size;
Expand Down

0 comments on commit 7b5181d

Please sign in to comment.