diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-12 14:36:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-17 19:12:24 +0100 |
commit | 372f700f4756b4c3d0a79dc4aa4be3ec0c9dc29d (patch) | |
tree | f22618a78ac62401405d71058aae3e5b9aff32d6 | |
parent | 03acd2912847ba49d50d865662519ac24b9abe4c (diff) | |
download | samba-372f700f4756b4c3d0a79dc4aa4be3ec0c9dc29d.tar.gz samba-372f700f4756b4c3d0a79dc4aa4be3ec0c9dc29d.tar.bz2 samba-372f700f4756b4c3d0a79dc4aa4be3ec0c9dc29d.zip |
s4:lib/socket: we need to lookup the #20 netbios name when we connect to a remote server
metze
-rw-r--r-- | source4/lib/socket/connect.c | 2 | ||||
-rw-r--r-- | source4/lib/socket/connect_multi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/socket/connect.c b/source4/lib/socket/connect.c index 2598d8e5f8..409e19e7f5 100644 --- a/source4/lib/socket/connect.c +++ b/source4/lib/socket/connect.c @@ -116,7 +116,7 @@ struct composite_context *socket_connect_send(struct socket_context *sock, if (resolve_ctx != NULL && server_address->addr && strcmp(sock->backend_name, "ipv4") == 0) { struct nbt_name name; struct composite_context *creq; - make_nbt_name_client(&name, server_address->addr); + make_nbt_name_server(&name, server_address->addr); creq = resolve_name_send(resolve_ctx, &name, result->event_ctx); if (composite_nomem(creq, result)) return result; composite_continue(result, creq, continue_resolve_name, result); diff --git a/source4/lib/socket/connect_multi.c b/source4/lib/socket/connect_multi.c index 98b4d405b3..ad8637a597 100644 --- a/source4/lib/socket/connect_multi.c +++ b/source4/lib/socket/connect_multi.c @@ -105,7 +105,7 @@ _PUBLIC_ struct composite_context *socket_connect_multi_send( */ struct nbt_name name; struct composite_context *creq; - make_nbt_name_client(&name, server_address); + make_nbt_name_server(&name, server_address); creq = resolve_name_send(resolve_ctx, &name, result->event_ctx); if (composite_nomem(creq, result)) goto failed; composite_continue(result, creq, continue_resolve_name, result); |