(_krb5_get_init_creds_opt_copy): if the in options NULL, just make a clean copy

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14337 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-11-09 15:30:34 +00:00
parent d1972b5179
commit fb7b2586bc

View File

@@ -80,7 +80,8 @@ _krb5_get_init_creds_opt_copy(krb5_context context,
krb5_set_error_string(context, "out of memory");
return ENOMEM;
}
*opt = *in;
if (in)
*opt = *in;
if(opt->private == NULL) {
opt->private = calloc(1, sizeof(*opt->private));
if (opt->private == NULL) {