lkml.org 
[lkml]   [2014]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/4] KEYS: provide pure subject key identifier (fingerprint) as key id
Date
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


\
 
 \ /
  Last update: 2014-10-06 16:21    [W:2.047 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site