From 5a7596fd02668f84c08f94982657c6789eb9997b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 18 Oct 2008 21:17:47 +0000 Subject: [PATCH] allocate the right size git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23933 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/context.c b/lib/krb5/context.c index 7ef7db5a9..f514a9efe 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -353,7 +353,7 @@ krb5_copy_context(krb5_context context, krb5_context *out) return ENOMEM; } - p->mutex = malloc(sizeof(p->mutex)); + p->mutex = malloc(sizeof(*p->mutex)); if (p->mutex == NULL) { krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", "")); free(p);