Skip to content

Commit

Permalink
KCM wrong size memcmp
Browse files Browse the repository at this point in the history
Originally by Christos Zoulas.
  • Loading branch information
nicowilliams committed Mar 17, 2017
1 parent ec4a2fe commit 2506aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcm/cache.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2506aac

Please sign in to comment.