diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-10-01 23:48:57 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-10-01 23:48:57 +0000 |
commit | 6830c92452856fca75a47c57b1719c8045c15f87 (patch) | |
tree | 011ec58a99de99816b4c716a6bc6561a0192be26 /src | |
parent | 72a6d7f1585125e05a39eb57a95bf779fd2c160e (diff) | |
download | krb5-6830c92452856fca75a47c57b1719c8045c15f87.tar.gz krb5-6830c92452856fca75a47c57b1719c8045c15f87.tar.xz krb5-6830c92452856fca75a47c57b1719c8045c15f87.zip |
Initialize options for _alloc interface to same defaults as for _init
ticket: 5800
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20064 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/krb/gic_opt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/gic_opt.c b/src/lib/krb5/krb/gic_opt.c index e3e7d0b50c..227391ae42 100644 --- a/src/lib/krb5/krb/gic_opt.c +++ b/src/lib/krb5/krb/gic_opt.c @@ -1,10 +1,17 @@ #include "k5-int.h" #include "int-proto.h" +static void +init_common(krb5_get_init_creds_opt *opt) +{ + opt->flags |= KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT; +} + void KRB5_CALLCONV krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt) { - opt->flags = KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT; + opt->flags = 0; + init_common(opt); } void KRB5_CALLCONV @@ -174,6 +181,7 @@ krb5_get_init_creds_opt_alloc(krb5_context context, return ENOMEM; *opt = (krb5_get_init_creds_opt *) opte; + init_common(*opt); return 0; } |