summaryrefslogtreecommitdiff
path: root/librpc/rpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-01-04 10:11:09 +0100
committerGünther Deschner <gd@samba.org>2011-01-27 14:41:40 +0100
commitda3e057b6fdb40b6cf6bdb61b35467f34024a246 (patch)
tree17d9df109f09f5192161afb60c42eb0bf1595be0 /librpc/rpc
parent9d04f2bd68ca80f2a3270b40e9744e28a04f8646 (diff)
downloadsamba-da3e057b6fdb40b6cf6bdb61b35467f34024a246.tar.gz
samba-da3e057b6fdb40b6cf6bdb61b35467f34024a246.tar.bz2
samba-da3e057b6fdb40b6cf6bdb61b35467f34024a246.zip
librpc: Added support to accept netbios names.
If we have a NCACN_NP pipe, the binding host is the netbios name an not an IP address.
Diffstat (limited to 'librpc/rpc')
-rw-r--r--librpc/rpc/binding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 7489073677..b7c3a40a0d 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -758,7 +758,8 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx,
/* The 5th contains the network address */
if (num_protocols >= 3 && binding->host) {
- if (is_ipaddress(binding->host)) {
+ if (is_ipaddress(binding->host) ||
+ (binding->host[0] == '\\' && binding->host[1] == '\\')) {
status = dcerpc_floor_set_rhs_data(tower->floors, &tower->floors[4],
binding->host);
} else {