fix -M ipv6

This commit is contained in:
vanhauser-thc 2021-11-01 14:13:51 +01:00
parent 13db28f9d2
commit 9b055287c0
2 changed files with 2 additions and 1 deletions

View file

@ -3586,7 +3586,7 @@ int main(int argc, char *argv[]) {
}
} else
hydra_targets[i]->target = tmpptr;
if ((tmpptr2 = strchr(hydra_targets[i]->target, ':')) != NULL) {
if ((tmpptr2 = strchr(tmpptr, ':')) != NULL) {
*tmpptr2++ = 0;
tmpptr = tmpptr2;
hydra_targets[i]->port = atoi(tmpptr2);