From 878a986d6d4e115a4af889a802aa90bcda3deb13 Mon Sep 17 00:00:00 2001 From: Muhammad Usama Date: Tue, 18 Oct 2016 15:46:15 +0500 Subject: [PATCH] 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; -- 2.39.5