git.samba.org
/
lorikeet-heimdal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681708f
)
kdc: Fix copy_Principal_ptr() bug (plugin acc.)
author
Nicolas Williams
<nico@twosigma.com>
Thu, 20 Jan 2022 19:32:31 +0000
(13:32 -0600)
committer
Nicolas Williams
<nico@twosigma.com>
Thu, 20 Jan 2022 19:32:31 +0000
(13:32 -0600)
kdc/kdc-plugin.c
patch
|
blob
|
history
diff --git
a/kdc/kdc-plugin.c
b/kdc/kdc-plugin.c
index 80a155529f323f582aa37641d80441f1f28a4f5f..4dec49558d81d926a65e70f9b500f7ebfce7df11 100644
(file)
--- a/
kdc/kdc-plugin.c
+++ b/
kdc/kdc-plugin.c
@@
-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);