OpenSSL: Add a debugging assert for timeouts

This commit is contained in:
Aaron Jones 2016-09-15 19:31:28 +00:00
parent b4a0b60dff
commit 01ce1c508d
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -592,6 +592,8 @@ static void
rb_ssl_timeout(rb_fde_t *const F, void *const notused)
{
lrb_assert(F->accept != NULL);
lrb_assert(F->accept->callback != NULL);
F->accept->callback(F, RB_ERR_TIMEOUT, NULL, 0, F->accept->data);
}