diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-02-08 08:52:18 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-02-08 08:52:18 +0100 |
commit | 4eae840bd56bda22b7bf6c9a55f1118ed62461e4 (patch) | |
tree | ecc9287d1b038e36e37ef8e73c485cf915b1abd0 /debian/patches/111_nxcomp_byerace.full+lite.patch | |
parent | 54792fe297c0965c5c5d3a5db0280d064e2d7fa2 (diff) | |
download | nx-libs-4eae840bd56bda22b7bf6c9a55f1118ed62461e4.tar.gz nx-libs-4eae840bd56bda22b7bf6c9a55f1118ed62461e4.tar.bz2 nx-libs-4eae840bd56bda22b7bf6c9a55f1118ed62461e4.zip |
Add patch: 111_nxcomp_byerace.full+lite.patch. Work around race condition in qtnx and libnxcl.
Diffstat (limited to 'debian/patches/111_nxcomp_byerace.full+lite.patch')
-rw-r--r-- | debian/patches/111_nxcomp_byerace.full+lite.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/111_nxcomp_byerace.full+lite.patch b/debian/patches/111_nxcomp_byerace.full+lite.patch new file mode 100644 index 000000000..ff0f41c13 --- /dev/null +++ b/debian/patches/111_nxcomp_byerace.full+lite.patch @@ -0,0 +1,21 @@ +--- a/nxcomp/Loop.cpp ++++ b/nxcomp/Loop.cpp +@@ -7321,6 +7321,18 @@ + << logofs_flush; + #endif + ++ // Henning Heinold ++ // fix up error from libnxcl where bye can be in front of NXPROXY ++ if (strncmp(options, "bye", strlen("bye")) == 0) ++ { ++ int bye_length = strlen("bye"); ++ char *moo = &options[bye_length+1]; ++ ++ memmove(options, moo, DEFAULT_REMOTE_OPTIONS_LENGTH-bye_length-1); ++ *logofs << "Loop: Cleanded the bye in options, options now looks '" ++ << options << "'.\n" << logofs_flush; ++ } ++ + if (strncmp(options, "NXPROXY-", strlen("NXPROXY-")) != 0) + { + #ifdef PANIC |