r6930: Use NBT_NAME_CLIENT instead of the number 0.
authorTim Potter <tpot@samba.org>
Sun, 22 May 2005 09:43:20 +0000 (09:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:57 +0000 (13:16 -0500)
(This used to be commit e6b53ce177d7fea7440656a7bba3dd96fb82e9f3)

source4/libcli/wins/winsrepl.c
source4/utils/nmblookup.c

index bf3593bdf8842bb46279b8bcefdc339952ab865c..7a3ce72b91c0a42348152def7cfe0b1e34af44c1 100644 (file)
@@ -603,7 +603,7 @@ static NTSTATUS wrepl_extract_name(struct nbt_name *name,
 
        if (len < 17) {
                name->name = talloc_strndup(mem_ctx, namebuf, len);
-               name->type = 0;
+               name->type = NBT_NAME_CLIENT;
                name->scope = NULL;
                return NT_STATUS_OK;
        }
index 857d03fe19eed612d789a903f839dedc11b6747b..bf034b26a39b5ec9a92f7ce23c9c0b8d7da51fa2 100644 (file)
@@ -108,7 +108,7 @@ static void do_node_status(struct nbt_name_socket *nbtsock,
        NTSTATUS status;
 
        io.in.name.name = "*";
-       io.in.name.type = 0;
+       io.in.name.type = NBT_NAME_CLIENT;
        io.in.name.scope = NULL;
        io.in.dest_addr = addr;
        io.in.timeout = 1;