(get_init_creds_common): handle options == NULL. noted by

<marc@mit.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9808 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-04-25 00:48:10 +00:00
parent 6fc351f397
commit 900bbe269a

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -213,6 +213,12 @@ get_init_creds_common(krb5_context context,
{
krb5_error_code ret;
krb5_realm *client_realm;
krb5_get_init_creds_opt default_opt;
if (options == NULL) {
krb5_get_init_creds_opt_init (&default_opt);
options = &default_opt;
}
ret = init_cred (context, cred, client, start_time,
in_tkt_service, options);