support uncommon mysql ports

This commit is contained in:
van Hauser 2018-06-14 02:44:31 +02:00
parent 650a8185c6
commit eb064c4222
4 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Changelog for hydra
Release 8.7-dev
* mysql module: a non-default port was not working, fixed
* added -w timeout support to ssh module
* fixed various memory leaks in http-form module
* corrected hydra return code to be 0 on success

0
Makefile.am Executable file → Normal file
View file

View file

@ -212,7 +212,7 @@ int32_t start_mysql(int32_t sock, char *ip, int32_t port, unsigned char options,
}
}
/*mysql_options(&mysql,MYSQL_OPT_COMPRESS,0); */
if (!mysql_real_connect(mysql, hydra_address2string(ip), login, pass, database, 0, NULL, 0)) {
if (!mysql_real_connect(mysql, hydra_address2string(ip), login, pass, database, port, NULL, 0)) {
int32_t my_errno = mysql_errno(mysql);
if (debug)

0
hydra.h Executable file → Normal file
View file