From 82be691b9d34f0f743f4e37c40c9c1f9cfca099e Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Fri, 18 Aug 2017 21:37:29 +0200 Subject: [PATCH] vmauthd: don't use freed mem (found by ccc-analyzer). --- hydra-vmauthd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-vmauthd.c b/hydra-vmauthd.c index 7ed6174..95ba53f 100644 --- a/hydra-vmauthd.c +++ b/hydra-vmauthd.c @@ -108,8 +108,8 @@ void service_vmauthd(char *ip, int32_t sp, unsigned char options, char *miscptr, hydra_child_exit(2); } if ((strstr(buf, "Version 1.00") == NULL) && (strstr(buf, "Version 1.10") == NULL)) { - free(buf); hydra_report(stderr, "[ERROR] this vmware authd protocol is not supported, please report: %s\n", buf); + free(buf); hydra_child_exit(2); } //by default this service is waiting for ssl connections