Skip to content

Commit

Permalink
smbc_opendir should not return EEXIST with invalid login credentials
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <dmulder@suse.com>

Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jim McDonough <jmcd@samba.org>

Autobuild-User(master): Jim McDonough <jmcd@samba.org>
Autobuild-Date(master): Thu Nov  9 01:49:06 CET 2017 on sn-devel-144
  • Loading branch information
dmulder authored and jmcdough committed Nov 9, 2017
1 parent de5e23c commit 7470b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source3/libsmb/libsmb_server.c
Expand Up @@ -351,8 +351,8 @@ SMBC_server_internal(TALLOC_CTX *ctx,
"?????",
*pp_password);
if (!NT_STATUS_IS_OK(status)) {
errno = map_errno_from_nt_status(status);
cli_shutdown(srv->cli);
errno = map_errno_from_nt_status(status);
srv->cli = NULL;
smbc_getFunctionRemoveCachedServer(context)(context,
srv);
Expand Down Expand Up @@ -562,8 +562,8 @@ SMBC_server_internal(TALLOC_CTX *ctx,

status = cli_tree_connect_creds(c, share, "?????", creds);
if (!NT_STATUS_IS_OK(status)) {
errno = map_errno_from_nt_status(status);
cli_shutdown(c);
errno = map_errno_from_nt_status(status);
return NULL;
}

Expand Down

0 comments on commit 7470b9b

Please sign in to comment.