420 case SSL_ERROR_SSL: errstr = "SSL_ERROR_SSL"; break; |
421 case SSL_ERROR_SSL: errstr = "SSL_ERROR_SSL"; break; |
421 } |
422 } |
422 log_ereport(LOG_VERBOSE, "SSL accept error[%d]: %s", error, errstr); |
423 log_ereport(LOG_VERBOSE, "SSL accept error[%d]: %s", error, errstr); |
423 free(conn); |
424 free(conn); |
424 conn = NULL; |
425 conn = NULL; |
425 close(clientfd); |
426 system_close(clientfd); |
426 } else { |
427 } else { |
427 conn->ssl = ssl; |
428 conn->ssl = ssl; |
428 conn->read = connection_ssl_read; |
429 conn->read = connection_ssl_read; |
429 conn->write = connection_ssl_write; |
430 conn->write = connection_ssl_write; |
430 conn->close = connection_ssl_close; |
431 conn->close = connection_ssl_close; |