Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH 2/4] KEYS: provide pure subject key identifier (fingerprint) as key id | Date | Mon, 06 Oct 2014 14:51:43 +0100 |
| |
Dmitry Kasatkin <d.kasatkin@samsung.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
| |