Re: [PATCH 2/4] KEYS: provide pure subject key identifier (fingerprint) as key id

From: David Howells
Date: Mon Oct 06 2014 - 09:52:16 EST


Dmitry Kasatkin <d.kasatkin@xxxxxxxxxxx> wrote:

> - memcpy(kid->data + len_1, val_2, len_2);
> + if (val_2)
> + memcpy(kid->data + len_1, val_2, len_2);

Btw, I think this should probably be "if (len_2)" rather than "if (val_2)" so
that we don't bother with the memcpy() if there's no second component.

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/