summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.c
diff options
context:
space:
mode:
authorZhang Huan <zhanghuan@open-fs.com>2017-08-25 15:15:46 +0800
committerAmar Tumballi <amarts@redhat.com>2018-03-28 07:37:34 +0000
commitf7d6d8579c4f741744a781d338850835765ed171 (patch)
treecc8c751ede22c02e8b78058750067c8d4f365015 /rpc/rpc-lib/src/rpc-clnt.c
parenta60fc2ddc03134fb23c5ed5c0bcb195e1649416b (diff)
rpc: fix incorrect return value when xdr decode fails
xdr_replymsg is called to decode reply message, and it returns failure if the message is corrupted. However, retrieving return value from the global errno is 0 even xdr_replymsg fails. Fix this issue by simply returning a negative value if call to xdr_replymsg fails. Change-Id: I2b9a1dc97652fbb6cf6568ea617f120713784a55 BUG: 1523122 Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.c')
0 files changed, 0 insertions, 0 deletions