1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)

This commit is contained in:
Andrew Tridgell 2005-02-14 23:36:42 +00:00 committed by Gerald (Jerry) Carter
parent 2650b43ca9
commit 76c49851b9

View 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 = ' ';