瀏覽代碼

HPCC-8976 - Fix suspect code in CSocket::write_multiple

A counter tracking how much left to send was incorrectly
reduced. When it hit zero it should have wrote last write and exited.
But due to a typo' it was not being reduced as intended.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 12 年之前
父節點
當前提交
3a95434af4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      system/jlib/jsocket.cpp

+ 1 - 1
system/jlib/jsocket.cpp

@@ -1913,7 +1913,7 @@ EintrRetry:
                 cpy = s;
             memcpy(outbuf+os,b,cpy);
             os += cpy;
-            left =- cpy;
+            left -= cpy;
             s -= cpy;
             b += cpy;
             if (left==0)  {