Re: [PATCH v6 3/6] KEYS: make partial key id matching as a dedicated function

From: David Howells
Date: Fri Jun 27 2014 - 09:38:32 EST


Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:

> + if (strncmp(id, "id:", 3) == 0)

Use memcmp() here.

> - kid += kidlen - idlen;
> - if (strcasecmp(id, kid) != 0)
> - return 0;

This test is no longer applied in the "<subtype>:..." case.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/