This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gokdrive.

commit e4df4207872952c180f828ff34fc71f4fceaeff5
Author: Oleksandr Shneyder <o.shney...@phoca-gmbh.de>
Date:   Tue Jun 22 09:21:10 2021 -0500

    fix infinite loop if reading of cookie has failed.
---
 debian/changelog   | 1 +
 x2gokdriveremote.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 03dfbc9..7b23b31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
     - move calling of possibly thread-unsafe ospoll functions (SetNotifyFd,
       RemoveNotifyFd) to main thread.
     - (re)enable sessions debugging.
+    - fix infinite loop if reading of cookie has failed.
 
   [ Mihai Moldovan ]
   * Initial release:
diff --git a/x2gokdriveremote.c b/x2gokdriveremote.c
index 45c8cf0..f98c28e 100644
--- a/x2gokdriveremote.c
+++ b/x2gokdriveremote.c
@@ -2496,7 +2496,7 @@ void serverAcceptNotify(int fd, int ready_sock, void 
*data)
                 EPHYR_DBG("READ COOKIE ERROR");
                 shutdown(remoteVars.clientsock, SHUT_RDWR);
                 close(remoteVars.clientsock);
-                continue;
+                return;
             }
             ready+=chunk;
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/x2gokdrive.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to