libsmb: Fix valgrind errors in cli_smb2_get_reparse_point
authorVolker Lendecke <vl@samba.org>
Tue, 26 Mar 2019 09:56:27 +0000 (10:56 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 27 Mar 2019 11:20:23 +0000 (11:20 +0000)
commitf9a6992e8027c119e7cf0426b46adb301083a7a5
treea3ca0be63b0718dce5e1b76a977fbe4ad8c5c06b
parentac487bf4d04c9771ada1ca7eeb9dac4e5fe34185
libsmb: Fix valgrind errors in cli_smb2_get_reparse_point

Both tevent_req_nterror and tevent_req_is_nterror invalidate
"state". Pull the variables out of "state" before calling those two
functions.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c