Fixed a critical bug which prevented gumtree SE from working. No ACt was sent
after removing the sycamore protocol
This commit is contained in:
6
conman.c
6
conman.c
@ -1323,7 +1323,7 @@ int SCWriteZipped(SConnection * self, char *pName, void *pData,
|
|||||||
memset(outBuf, 0, 65536);
|
memset(outBuf, 0, 65536);
|
||||||
|
|
||||||
protocolID = GetProtocolID(self);
|
protocolID = GetProtocolID(self);
|
||||||
if (protocolID == 5) {
|
if (protocolID == 4) {
|
||||||
cc = SCGetContext(self);
|
cc = SCGetContext(self);
|
||||||
sprintf(outBuf, "SICSBIN ZIP %s %d %d\r\n", pName,
|
sprintf(outBuf, "SICSBIN ZIP %s %d %d\r\n", pName,
|
||||||
compressedLength, cc.transID);
|
compressedLength, cc.transID);
|
||||||
@ -1398,7 +1398,7 @@ int SCWriteBinary(SConnection * self, char *pName, void *pData,
|
|||||||
memset(outBuf, 0, 65536);
|
memset(outBuf, 0, 65536);
|
||||||
|
|
||||||
protocolID = GetProtocolID(self);
|
protocolID = GetProtocolID(self);
|
||||||
if (protocolID == 5) {
|
if (protocolID == 4) {
|
||||||
cc = SCGetContext(self);
|
cc = SCGetContext(self);
|
||||||
sprintf(outBuf, "SICSBIN BIN %s %d %d\r\n", pName,
|
sprintf(outBuf, "SICSBIN BIN %s %d %d\r\n", pName,
|
||||||
iDataLen, cc.transID);
|
iDataLen, cc.transID);
|
||||||
@ -1504,7 +1504,7 @@ int SCWriteZippedOld(SConnection * self, char *pName, void *pData,
|
|||||||
memset(outBuf, 0, 65536);
|
memset(outBuf, 0, 65536);
|
||||||
|
|
||||||
protocolID = GetProtocolID(self);
|
protocolID = GetProtocolID(self);
|
||||||
if (protocolID == 5) {
|
if (protocolID == 4) {
|
||||||
cc = SCGetContext(self);
|
cc = SCGetContext(self);
|
||||||
sprintf(outBuf, "SICSBIN ZIP %s %d %d\r\n", pName,
|
sprintf(outBuf, "SICSBIN ZIP %s %d %d\r\n", pName,
|
||||||
compressedLength, cc.transID);
|
compressedLength, cc.transID);
|
||||||
|
Reference in New Issue
Block a user