svn commit: samba r5382 - in branches/SAMBA_4_0/source/libcli/nbt: .
tridge at samba.org
tridge at samba.org
Mon Feb 14 01:02:47 GMT 2005
Author: tridge
Date: 2005-02-14 01:02:47 +0000 (Mon, 14 Feb 2005)
New Revision: 5382
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5382
Log:
another place where we need to uppercase the called name for port 139 connects
Modified:
branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/nbt/nbtname.c 2005-02-14 00:59:52 UTC (rev 5381)
+++ branches/SAMBA_4_0/source/libcli/nbt/nbtname.c 2005-02-14 01:02:47 UTC (rev 5382)
@@ -311,15 +311,17 @@
}
if (strlen(name) > 15) {
const char *p = strchr(name, '.');
+ char *s;
if (p - name > 15) {
n->name = "*SMBSERVER";
return;
}
- n->name = talloc_strndup(mem_ctx, name, PTR_DIFF(p, name));
+ s = talloc_strndup(mem_ctx, name, PTR_DIFF(p, name));
+ n->name = strupper_talloc(mem_ctx, s);
return;
}
- n->name = talloc_strdup(mem_ctx, name);
+ n->name = strupper_talloc(mem_ctx, name);
}
More information about the samba-cvs
mailing list