Another protocol ID which escaped
This commit is contained in:
2
conman.c
2
conman.c
@ -1086,7 +1086,7 @@ int SCPureSockWrite(SConnection * self, char *buffer, int iOut)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(self->iProtocolID == 4) {
|
if(self->iProtocolID == PROTACT) {
|
||||||
if (strlen(buffer) + 30 > 1024) {
|
if (strlen(buffer) + 30 > 1024) {
|
||||||
pPtr = (char *) malloc((strlen(buffer) + 30) * sizeof(char));
|
pPtr = (char *) malloc((strlen(buffer) + 30) * sizeof(char));
|
||||||
memset(pPtr, 0, strlen(buffer) + 20);
|
memset(pPtr, 0, strlen(buffer) + 20);
|
||||||
|
Reference in New Issue
Block a user