From 936017e4d62628851463cdd953b934875b995625 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 31 Jan 2017 11:32:35 -0600 Subject: [PATCH] KCM wrong size memcmp Originally by Christos Zoulas. --- kcm/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcm/cache.c b/kcm/cache.c index 25b84ab38..0b6cdf526 100644 --- a/kcm/cache.c +++ b/kcm/cache.c @@ -105,7 +105,7 @@ kcm_ccache_resolve_by_uuid(krb5_context context, for (p = ccache_head; p != NULL; p = p->next) { if ((p->flags & KCM_FLAGS_VALID) == 0) continue; - if (memcmp(p->uuid, uuid, sizeof(kcmuuid_t)) == 0) { + if (memcmp(p->uuid, uuid, sizeof(*uuid)) == 0) { ret = 0; break; }