pgpool2.git / summary / log / commit / refs
commit 878a986d6d4e115a4af889a802aa90bcda3deb13
Author: Muhammad Usama <m.usama@gmail.com>
Date: Tue Oct 18 10:46:15 2016 +0000
Fix for 0000252: authentication failed error when PCP command is cancelled...
Fixed by adding the volatile modifier to authenticated flag, to make sure we
always get the updated value after the long jump.
src/pcp_con/pcp_worker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pcp_con/pcp_worker.c b/src/pcp_con/pcp_worker.c
index 925c5f169..5fdfdf0c8 100644
--- a/src/pcp_con/pcp_worker.c
+++ b/src/pcp_con/pcp_worker.c
@@ -95,7 +95,7 @@ pcp_worker_main(int port)
{
sigjmp_buf local_sigjmp_buf;
MemoryContext PCPMemoryContext;
- int authenticated = 0;
+ volatile int authenticated = 0;
char salt[4];
int random_salt = 0;
[parent: 36032e52d11d]