ticket: 5800
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20064
dc483132-0cff-0310-8789-
dd5450dbe970
#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
return ENOMEM;
*opt = (krb5_get_init_creds_opt *) opte;
+ init_common(*opt);
return 0;
}