summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-11 07:54:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:42 -0500
commitdd689afdc807b9ff057ee7e917e12b6597fe319c (patch)
tree6a3249cbe4834ccbe29973d07abbf5fa8f5ad7e9 /source4/libcli/resolve
parentf3d1fa124bafde1842c09fa6d408a52f99b5d984 (diff)
downloadsamba-dd689afdc807b9ff057ee7e917e12b6597fe319c.tar.gz
samba-dd689afdc807b9ff057ee7e917e12b6597fe319c.tar.bz2
samba-dd689afdc807b9ff057ee7e917e12b6597fe319c.zip
r5328: - allow case sensitive nbt name lookups
- added --case-sensitive option to nmblookup - added case sensitivity tests to the NBT-WINS test (This used to be commit 80a95d5688e055b36727e5c043cb36322d719763)
Diffstat (limited to 'source4/libcli/resolve')
-rw-r--r--source4/libcli/resolve/nbtlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/resolve/nbtlist.c b/source4/libcli/resolve/nbtlist.c
index 5a9e31e09d..89e9a63748 100644
--- a/source4/libcli/resolve/nbtlist.c
+++ b/source4/libcli/resolve/nbtlist.c
@@ -101,6 +101,13 @@ struct composite_context *resolve_name_nbtlist_send(struct nbt_name *name,
status = nbt_name_dup(state, name, &state->name);
if (!NT_STATUS_IS_OK(status)) goto failed;
+ state->name.name = strupper_talloc(state, state->name.name);
+ if (state->name.name == NULL) goto failed;
+ if (state->name.scope) {
+ state->name.scope = strupper_talloc(state, state->name.scope);
+ if (state->name.scope == NULL) goto failed;
+ }
+
state->nbtsock = nbt_name_socket_init(state, event_ctx);
if (state->nbtsock == NULL) goto failed;