Remove null pointer dereference

This commit is contained in:
Diadlo 2017-06-10 23:54:59 +03:00
parent 66562bd73c
commit e95e036bbf
No known key found for this signature in database
GPG key ID: 5AF9F2E29107C727

View file

@ -338,8 +338,7 @@ void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *m
do {
if ((buf = hydra_receive_line(sock)) == NULL) {
/* no auth method identified */
hydra_report(stderr, "[ERROR] no authentication methods can be identified %s\n", buf);
free(buf);
hydra_report(stderr, "[ERROR] no authentication methods can be identified\n");
hydra_child_exit(1);
}