1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix regression in dblink_disconnect() reported by Eduardo Stern:

persistent_conn was left dangling after a disconnect in the
unnamed connection case, causing a subsequent disconnect to
crash the backend.
This commit is contained in:
Joe Conway
2003-11-28 05:03:02 +00:00
parent dd01cfe1c4
commit d1824a5ccb
3 changed files with 5 additions and 5 deletions

View File

@ -256,6 +256,8 @@ dblink_disconnect(PG_FUNCTION_ARGS)
deleteConnection(conname);
pfree(rcon);
}
else
persistent_conn = NULL;
PG_RETURN_TEXT_P(GET_TEXT("OK"));
}