[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9177.1412603503@warthog.procyon.org.uk>
Date: Mon, 06 Oct 2014 14:51:43 +0100
From: David Howells <dhowells@...hat.com>
To: Dmitry Kasatkin <d.kasatkin@...sung.com>
Cc: dhowells@...hat.com, zohar@...ux.vnet.ibm.com,
linux-ima-devel@...ts.sourceforge.net,
linux-security-module@...r.kernel.org, jmorris@...ei.org,
rusty@...tcorp.com.au, keyrings@...ux-nfs.org,
linux-kernel@...r.kernel.org, dmitry.kasatkin@...il.com
Subject: Re: [PATCH 2/4] KEYS: provide pure subject key identifier (fingerprint) as key id
Dmitry Kasatkin <d.kasatkin@...sung.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists