1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

libsmbclient: Avoid a call to SMBC_errno() in SMBC_open_ctx()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-12-15 17:15:21 +01:00 committed by Jeremy Allison
parent 7c2b6a71dc
commit 5e98b7dfc0

View File

@ -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;
}