summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-01-26 16:54:30 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-04-29 23:31:08 +0200
commitb161e5c923047168a854bcb911b38c9b48c6707f (patch)
treef29751241a1f53a81cf461c37e2036414b781e7b /source4/kdc
parent0e84e8325219a2408ab0c58af56f228b02ae31d4 (diff)
downloadsamba-b161e5c923047168a854bcb911b38c9b48c6707f.tar.gz
mit-kdb: Zero the db principal when we allocate it
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/mit_samba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/kdc/mit_samba.c b/source4/kdc/mit_samba.c
index f5015840055..8a2bfe9b715 100644
--- a/source4/kdc/mit_samba.c
+++ b/source4/kdc/mit_samba.c
@@ -188,7 +188,7 @@ int mit_samba_get_principal(struct mit_samba_context *ctx,
int ret;
int sflags = 0;
- kentry = malloc(sizeof(krb5_db_entry));
+ kentry = calloc(1, sizeof(krb5_db_entry));
if (kentry == NULL) {
return ENOMEM;
}