1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

fixed used of string after free

(This used to be commit f7ead035eb)
This commit is contained in:
Andrew Tridgell 2001-12-09 00:45:51 +00:00
parent 6490fbce6b
commit bc26ea1e5c

View File

@ -104,11 +104,11 @@ int ads_kinit_password(ADS_STRUCT *ads)
}
asprintf(&s, "%s@%s", ads->user_name, ads->realm);
ret = kerberos_kinit_password(s, ads->password);
free(s);
if (ret) {
DEBUG(1,("kerberos_kinit_password %s failed: %s\n",
s, error_message(ret)));
}
free(s);
return ret;
}