diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 12:25:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:08 +0200 |
commit | 814449ab019e8ffea07a6d4c6609fb3512869cbe (patch) | |
tree | 3f381d4b7ccf39995f8ed2d1c36331c1ea92d3f3 | |
parent | 1eb8c2ae22e667f3319afb0b32164cc80bb25cd0 (diff) | |
download | samba-814449ab019e8ffea07a6d4c6609fb3512869cbe.tar.gz samba-814449ab019e8ffea07a6d4c6609fb3512869cbe.tar.bz2 samba-814449ab019e8ffea07a6d4c6609fb3512869cbe.zip |
s3:libsmb_server: pass NULL instead of a zero sockaddr_storage
metze
-rw-r--r-- | source3/libsmb/libsmb_server.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index 760bd9a8d3..ed09cef3f0 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -674,7 +674,6 @@ SMBC_attr_server(TALLOC_CTX *ctx, char **pp_password) { int flags; - struct sockaddr_storage ss; struct cli_state *ipc_cli = NULL; struct rpc_pipe_client *pipe_hnd = NULL; NTSTATUS nt_status; @@ -725,10 +724,9 @@ SMBC_attr_server(TALLOC_CTX *ctx, flags |= CLI_FULL_CONNECTION_USE_CCACHE; } - zero_sockaddr(&ss); nt_status = cli_full_connection(&ipc_cli, lp_netbios_name(), server, - &ss, 0, "IPC$", "?????", + NULL, 0, "IPC$", "?????", *pp_username, *pp_workgroup, *pp_password, |