dblink crash fix

Started by Kris Jurkaalmost 22 years ago2 messagespatches
Jump to latest
#1Kris Jurka
books@ejurka.com

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

Attachments:

dblink.patchtext/plain; charset=US-ASCII; name=dblink.patchDownload+3-3
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Kris Jurka (#1)
Re: dblink crash fix

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