diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-08 02:01:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-11-08 02:01:05 +0000 |
commit | 7c9812934186facf39d933b441710db550914da4 (patch) | |
tree | 6f349e9def8863e0892eec6a98a82931f63c6c96 /source | |
parent | ddcf1cdf485fce5f46fcb65bcbb719612be2f24d (diff) | |
download | samba-7c9812934186facf39d933b441710db550914da4.tar.gz samba-7c9812934186facf39d933b441710db550914da4.tar.xz samba-7c9812934186facf39d933b441710db550914da4.zip |
r3610: prevent segv with heimdal and password krb5 init
Diffstat (limited to 'source')
-rw-r--r-- | source/libcli/auth/kerberos.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/libcli/auth/kerberos.c b/source/libcli/auth/kerberos.c index d70444d5bc7..224e4abbdc2 100644 --- a/source/libcli/auth/kerberos.c +++ b/source/libcli/auth/kerberos.c @@ -61,14 +61,17 @@ kerb_prompter(krb5_context ctx, void *data, krb5_error_code code = 0; krb5_principal me; krb5_creds my_creds; + krb5_get_init_creds_opt options; if ((code = krb5_parse_name(ctx, principal, &me))) { return code; } - + + ZERO_STRUCT(options); + if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, password, kerb_prompter, - NULL, 0, NULL, NULL))) { + NULL, 0, NULL, &options))) { krb5_free_principal(ctx, me); return code; } |