3900. [bug] Fix a crash in PostgreSQL DLZ driver. [RT #36637]

Squashed commit of the following:

commit ebdade4dfe59fc11d3c4ad8111729f722aab2008
Author: Mukund Sivaraman <muks@isc.org>
Date:   Thu Jul 24 22:52:54 2014 +0530

    Move statement to be after comment

commit 4b5d6a33350a469afb8e273bc552055824a32570
Author: Mukund Sivaraman <muks@isc.org>
Date:   Thu Jul 24 21:42:52 2014 +0530

    Return NULL in *rs so that caller doesn't PQclear() it again

(cherry picked from commit 586db4a3e4)
This commit is contained in:
Mukund Sivaraman 2014-07-28 08:41:59 +05:30
parent 4e54aa4806
commit 67ce49d3ab
2 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,5 @@
3900. [bug] Fix a crash in PostgreSQL DLZ driver. [RT #36637]
3899. [bug] "request-ixfr" is only applicable to slave and redirect
zones. [RT #36608]

View file

@ -577,6 +577,7 @@ postgres_get_resultset(const char *zone, const char *record,
#endif
PQclear(*rs); /* get rid of it */
/* in case this was the last attempt */
*rs = NULL;
result = ISC_R_FAILURE;
}
}