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:
William King 2015-01-29 15:20:10 -06:00
parent dc071a1345
commit c8f8d6b964

View File

@ -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: