From dd689afdc807b9ff057ee7e917e12b6597fe319c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 Feb 2005 07:54:20 +0000 Subject: 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) --- source4/libcli/resolve/nbtlist.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/libcli/resolve') 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; -- cgit