From: Volker Lendecke Date: Tue, 15 Dec 2020 16:15:21 +0000 (+0100) Subject: libsmbclient: Avoid a call to SMBC_errno() in SMBC_open_ctx() X-Git-Tag: ldb-2.5.0~1004 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e98b7dfc03afe8ed2eff809134c7922d17af9a2;p=thirdparty%2Fsamba.git libsmbclient: Avoid a call to SMBC_errno() in SMBC_open_ctx() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index e9db36e00da..3aacb1ef81e 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -136,8 +136,8 @@ SMBC_open_ctx(SMBCCTX *context, /* Handle the error ... */ SAFE_FREE(file); - errno = SMBC_errno(context, targetcli); TALLOC_FREE(frame); + errno = cli_status_to_errno(status); return NULL; }