mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 07:22:55 +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:
parent
dc071a1345
commit
c8f8d6b964
@ -525,7 +525,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_exec_string_detailed(c
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!result) {
|
||||
if (result) {
|
||||
switch (result->status) {
|
||||
#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 2
|
||||
case PGRES_SINGLE_TUPLE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user