mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-12 17:20:23 +00:00
FS-10228: [switch_pgsql] Avoiding double openssl initialization when using core pgsql
This commit is contained in:
parent
522267060a
commit
c8d5fed7c5
@ -495,7 +495,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_connect(switch_pgsql_h
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "Connecting %s\n", handle->dsn);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "Connecting %s\n", handle->dsn);
|
||||||
|
PQinitSSL(0);
|
||||||
handle->con = PQconnectdb(handle->dsn);
|
handle->con = PQconnectdb(handle->dsn);
|
||||||
if (PQstatus(handle->con) != CONNECTION_OK) {
|
if (PQstatus(handle->con) != CONNECTION_OK) {
|
||||||
char *err_str;
|
char *err_str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user