(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:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -213,6 +213,12 @@ get_init_creds_common(krb5_context context,
|
|||||||
{
|
{
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
krb5_realm *client_realm;
|
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,
|
ret = init_cred (context, cred, client, start_time,
|
||||||
in_tkt_service, options);
|
in_tkt_service, options);
|
||||||
|
Reference in New Issue
Block a user