Remove null pointer dereference

This commit is contained in:
Diadlo 2017-06-10 23:54:59 +03:00
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 { do {
if ((buf = hydra_receive_line(sock)) == NULL) { if ((buf = hydra_receive_line(sock)) == NULL) {
/* no auth method identified */ /* no auth method identified */
hydra_report(stderr, "[ERROR] no authentication methods can be identified %s\n", buf); hydra_report(stderr, "[ERROR] no authentication methods can be identified\n");
free(buf);
hydra_child_exit(1); hydra_child_exit(1);
} }