The http-form module for hydra 5.4 has a problem which causes incorrect pieces of memory to be free'd. This is as a result of the memory leak plugs which have been applied to this module for this release. This patch removes the unneeded free's and allows the module to work correctly.
ac64cac7e7334da4ed8ee10f88a7303460bc4c1f7cbb5b5a81f01e6c8938d0b4
--- hydra-http-form.old 2008-02-06 09:42:49.000000000 +0000
+++ hydra-http-form.c 2008-02-06 09:43:45.000000000 +0000
@@ -149,7 +149,6 @@
}
if (hydra_send(s, buffer, strlen(buffer), 0) < 0) {
- free(updvariables);
free(upd2variables);
return 1;
}
@@ -183,7 +182,6 @@
*/
free(buf);
- free(updvariables);
free(upd2variables);
if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0)