mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Test for uname result
in fail path initialize to 0.
This commit is contained in:
parent
209da6efee
commit
b45035ee14
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Add missing check for uname result in clvmd TEST processing.
|
||||
Fix memleak in target_version() error path (unsupported LIST_VERSIONS).
|
||||
Limit alignment to 32bit values.
|
||||
Check for correctness of uint64 dev_size value.
|
||||
|
@ -99,7 +99,9 @@ int do_command(struct local_client *client, struct clvm_header *msg, int msglen,
|
||||
*buf = new_buf;
|
||||
}
|
||||
if (*buf) {
|
||||
uname(&nodeinfo);
|
||||
if (uname(&nodeinfo))
|
||||
memset(&nodeinfo, 0, sizeof(nodeinfo));
|
||||
|
||||
*retlen = 1 + dm_snprintf(*buf, buflen,
|
||||
"TEST from %s: %s v%s",
|
||||
nodeinfo.nodename, args,
|
||||
|
Loading…
Reference in New Issue
Block a user