Skip to content

Commit 59ecb97

Browse files
authored
Merge pull request #114 from oracle/cel-fixes
tlshd: Return a non-zero peerid
2 parents b8a754f + 239ff5d commit 59ecb97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tlshd/server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ static int tlshd_server_x509_verify_function(gnutls_session_t session,
224224
return GNUTLS_E_CERTIFICATE_ERROR;
225225
}
226226
peerid = tlshd_keyring_create_cert(cert, parms->peername);
227+
if (peerid == TLS_NO_PEERID)
228+
peerid = UINT_MAX;
227229
g_array_append_val(parms->remote_peerids, peerid);
228230
gnutls_x509_crt_deinit(cert);
229231
}

0 commit comments

Comments
 (0)