diff options
author | David Teigland <teigland@redhat.com> | 2016-02-23 14:35:40 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-02-23 14:35:40 -0600 |
commit | eccc91f9b0ef7387f46cdd93e3f44ab45e0c1ba3 (patch) | |
tree | 0a98b63c56f4201f1b0ff394d6cea05c16846585 | |
parent | 0236a34224d31a6ad7b48e451183672e907b15d3 (diff) | |
download | lvm2-eccc91f9b0ef7387f46cdd93e3f44ab45e0c1ba3.tar.gz |
lvmlockd: set default result value
The default error value should be set indicating
an error.
-rw-r--r-- | lib/locking/lvmlockd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c index a33544cbc..e78e2cb46 100644 --- a/lib/locking/lvmlockd.c +++ b/lib/locking/lvmlockd.c @@ -142,6 +142,8 @@ static int _lockd_result(daemon_reply reply, int *result, uint32_t *lockd_flags) const char *flags_str = NULL; const char *lock_type = NULL; + *result = -1; + if (reply.error) { log_error("lockd_result reply error %d", reply.error); return 0; |