diff options
author | Herb Lewis <herb@samba.org> | 2004-03-12 21:35:15 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2004-03-12 21:35:15 +0000 |
commit | 0375dace248eb3dc660fa2bca2808552e502b3f7 (patch) | |
tree | 2d3f404d2716ccc3bf050c6b769d55ab5fae6609 | |
parent | 29909ce26ac9a0d8e631b1ed884c525674ee5606 (diff) | |
download | samba-0375dace248eb3dc660fa2bca2808552e502b3f7.tar.gz samba-0375dace248eb3dc660fa2bca2808552e502b3f7.tar.xz samba-0375dace248eb3dc660fa2bca2808552e502b3f7.zip |
if we are truncating to the . we need to start at the beginning in case
there are multiple "."'s in the name.
This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this
is #define'd to 1 directly above. Should we also get rid of the #ifdef?
-rw-r--r-- | source/libsmb/nmblib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c index ff38245435d..d0ea57dc1ce 100644 --- a/source/libsmb/nmblib.c +++ b/source/libsmb/nmblib.c @@ -1116,7 +1116,7 @@ char *dns_to_netbios_name(char *dns_name) netbios name up to and including the '.' this even applies, by mistake, to workgroup (domain) names, which is _really_ daft. */ - for (i = 15; i >= 0; i--) + for (i = 0; i >= 15; i--) { if (netbios_name[i] == '.') { |