r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
authorAndrew Tridgell <tridge@samba.org>
Mon, 14 Feb 2005 23:36:42 +0000 (23:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:51 +0000 (13:09 -0500)
(This used to be commit 76c49851b921c137c59c45084c5dab95f1c16f58)

source4/libcli/nbt/nbtname.c

index 6713c902850ba101603bd38e056f6375f5425dac..fc87c2f4b227710199b3eba63d0039b352989b93 100644 (file)
@@ -133,7 +133,7 @@ static uint8_t *compress_name(TALLOC_CTX *mem_ctx,
                cname[2*i]   = 'A' + (name[i]>>4);
                cname[1+2*i] = 'A' + (name[i]&0xF);
        }
-       if (name[0] == '*') {
+       if (strcmp(name, "*") == 0) {
                pad_char = 0;
        } else {
                pad_char = ' ';