kdc: Fix copy_Principal_ptr() bug (plugin acc.)

This commit is contained in:
Nicolas Williams
2022-01-20 13:32:31 -06:00
parent 681708f416
commit 588e49a1bc

View File

@@ -444,7 +444,7 @@ copy_Principal_ptr(krb5_const_principal src, krb5_principal *dst)
*dst = NULL;
p = calloc(1, sizeof(*p));
if (*dst == NULL)
if (p == NULL)
return ENOMEM;
ret = copy_Principal(src, p);