From 240da19de031f0e04a53bc19da9bbb95a006050f Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 24 Jan 2005 10:32:43 +0000 Subject: [PATCH] Allow NULL in_options to be passed to krb5_get_init_creds_password() git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14522 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index 4245def97..a6fdac96a 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -1442,7 +1442,10 @@ krb5_get_init_creds_password(krb5_context context, char buf[BUFSIZ]; krb5_error_code ret; - ret = _krb5_get_init_creds_opt_copy(context, in_options, &options); + if (in_options == NULL) + ret = krb5_get_init_creds_opt_alloc(context, &options); + else + ret = _krb5_get_init_creds_opt_copy(context, in_options, &options); if (ret) return ret;