From 35cab1e1279bc351c5f61c25b3a640887eb59f16 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sun, 26 Jan 2020 17:06:47 +0100 Subject: [PATCH] hydra-vnc: Use buf2 instead of buf in hydra_report A compiler warning told me that buf was used uninitialised here and it turned out that instead of buf2, buf was being used. It makes a lot more sense to report buf2 and that happens to fix the warning as well. --- hydra-vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-vnc.c b/hydra-vnc.c index 4d9d706..95a12d8 100644 --- a/hydra-vnc.c +++ b/hydra-vnc.c @@ -75,7 +75,7 @@ int32_t start_vnc(int32_t s, char *ip, int32_t port, unsigned char options, char //supported security type switch (buf2[3]) { case 0x0: - hydra_report(stderr, "[ERROR] VNC server told us to quit %c\n", buf[3]); + hydra_report(stderr, "[ERROR] VNC server told us to quit %c\n", buf2[3]); hydra_child_exit(0); break; case 0x1: