mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
Fix a null pointer dereference in the native postgresql connection
code. This is unlikely to ever be hit in the field.
This commit is contained in:
@@ -525,7 +525,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_exec_string_detailed(c
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!result) {
|
if (result) {
|
||||||
switch (result->status) {
|
switch (result->status) {
|
||||||
#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 2
|
#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 2
|
||||||
case PGRES_SINGLE_TUPLE:
|
case PGRES_SINGLE_TUPLE:
|
||||||
|
Reference in New Issue
Block a user