summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-14 23:36:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:51 -0500
commite428eee91b3506c0c02a35dbf01e55da2c73b547 (patch)
tree0a0c7aa2fbe9e85ffa5d7c7c838a4f84ba920a6d /source4/libcli
parent97b2a6f7edebb44c8648684bdd13692e8be3aaf2 (diff)
downloadsamba-e428eee91b3506c0c02a35dbf01e55da2c73b547.tar.gz
samba-e428eee91b3506c0c02a35dbf01e55da2c73b547.tar.bz2
samba-e428eee91b3506c0c02a35dbf01e55da2c73b547.zip
r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
(This used to be commit 76c49851b921c137c59c45084c5dab95f1c16f58)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/nbt/nbtname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/nbt/nbtname.c b/source4/libcli/nbt/nbtname.c
index 6713c90285..fc87c2f4b2 100644
--- a/source4/libcli/nbt/nbtname.c
+++ b/source4/libcli/nbt/nbtname.c
@@ -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 = ' ';