2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Fix clortho

The suggested correection for clortho was in fact
incorrect.  Revert back and cast it.
This commit is contained in:
Jarrod Johnson 2021-06-04 17:19:19 -04:00
parent bbe9bc3e06
commit 1645d47b73

View File

@ -131,7 +131,7 @@ int main(int argc, char* argv[]) {
buffer[currlen] = 0;
}
if (currtype == 2) {
dprintf(sock, "\x03%zu", currlen);
dprintf(sock, "\x03%c", (int)currlen);
ret = write(sock, buffer, currlen);
slen = strlen(cryptedpass) & 0xff;
dprintf(sock, "\x04%c%s", slen, cryptedpass);