|
Line 0
Link Here
|
|
|
1 |
--- src/backend/libpq/be-secure.c.orig 2017-05-06 09:44:42 UTC |
| 2 |
+++ src/backend/libpq/be-secure.c |
| 3 |
@@ -338,13 +338,13 @@ secure_write(Port *port, void *ptr, size |
| 4 |
ereport(COMMERROR, |
| 5 |
(errcode(ERRCODE_PROTOCOL_VIOLATION), |
| 6 |
errmsg("SSL renegotiation failure"))); |
| 7 |
- if (port->ssl->state != SSL_ST_OK) |
| 8 |
+ if (SSL_state(port->ssl) != SSL_ST_OK) |
| 9 |
ereport(COMMERROR, |
| 10 |
(errcode(ERRCODE_PROTOCOL_VIOLATION), |
| 11 |
errmsg("SSL failed to send renegotiation request"))); |
| 12 |
- port->ssl->state |= SSL_ST_ACCEPT; |
| 13 |
+ SSL_set_state(port->ssl, SSL_state(port->ssl) | SSL_ST_ACCEPT); |
| 14 |
SSL_do_handshake(port->ssl); |
| 15 |
- if (port->ssl->state != SSL_ST_OK) |
| 16 |
+ if (SSL_state(port->ssl) != SSL_ST_OK) |
| 17 |
ereport(COMMERROR, |
| 18 |
(errcode(ERRCODE_PROTOCOL_VIOLATION), |
| 19 |
errmsg("SSL renegotiation failure"))); |