Thread: dblink crash fix

dblink crash fix

From
Kris Jurka
Date:
This makes dblink pass its installcheck test on platforms where
snprintf(data, len, "%s", NULL) crash.

The code was trying to find a connection by name when it already had an
unnamed connection and did not have a name to search with.

Kris Jurka

Attachment

Re: dblink crash fix

From
Tom Lane
Date:
Kris Jurka <books@ejurka.com> writes:
> This makes dblink pass its installcheck test on platforms where
> snprintf(data, len, "%s", NULL) crash.

Good catch!  Applied.

            regards, tom lane