mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
clvmd: fix verify message rejection of REMOTE flag
This fixes a bug in commit 19baf842 where verify_message was rejecting the CLVMD_FLAG_REMOTE flag. It was missed since the patch was ported from an lvm version where that flag does not exist.
This commit is contained in:
parent
c9c23d4148
commit
4c0db84948
@ -1124,7 +1124,7 @@ static int verify_message(char *buf, int len)
|
||||
|
||||
/* TODO: we may be able to narrow len/flags/clientid/arglen checks based on cmd */
|
||||
|
||||
if (h->flags & ~(CLVMD_FLAG_LOCAL | CLVMD_FLAG_SYSTEMLV | CLVMD_FLAG_NODEERRS)) {
|
||||
if (h->flags & ~(CLVMD_FLAG_LOCAL | CLVMD_FLAG_SYSTEMLV | CLVMD_FLAG_NODEERRS | CLVMD_FLAG_REMOTE)) {
|
||||
log_error("verify_message bad flags %x", h->flags);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user