1
0
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:
Zdenek Kabelac 2012-01-25 22:17:57 +00:00
parent 209da6efee
commit b45035ee14
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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,