mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
coverity: check dm_strncpy return value in dmeventd/_get_parameters
This commit is contained in:
parent
08116a4962
commit
bbe4aca7c4
@ -531,7 +531,8 @@ static int _get_parameters(struct message_data *message_data) {
|
|||||||
msg->size = strlen(buf) + 1;
|
msg->size = strlen(buf) + 1;
|
||||||
if (!(msg->data = dm_malloc(msg->size)))
|
if (!(msg->data = dm_malloc(msg->size)))
|
||||||
goto_out;
|
goto_out;
|
||||||
dm_strncpy(msg->data, buf, msg->size);
|
if (!dm_strncpy(msg->data, buf, msg->size))
|
||||||
|
goto_out;
|
||||||
r = 0;
|
r = 0;
|
||||||
out:
|
out:
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user