nfs_rename_continue_1_internal: fix use-after-free
authorArne Redlich <arne.redlich@googlemail.com>
Mon, 17 Feb 2014 23:32:10 +0000 (00:32 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:58:02 +0000 (18:58 -0800)
commit766bb4af757b6f07c316337f34221ddb769fb749
tree8ba4c0b4c6f30bcbcbe5404799c4d586cad4320b
parentbcbb21cdbb66e36fc4ef77559282aaf2242fe7b0
nfs_rename_continue_1_internal: fix use-after-free

Spotted by clang analyzer.
This introduces another allocation to create a copy of the target path
of a rename in case it needs to be reported via rpc_set_error - it might
be a better idea to avoid the allocation and have a slightly less informative
error message?

Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
lib/libnfs.c