r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
[samba.git] / 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 = ' ';