summaryrefslogtreecommitdiff
path: root/source/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-24 13:15:34 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-24 13:15:34 +0000
commit39cec7f698c4461aee05cfbb213879fbd486117d (patch)
tree0d71e19ec498189a14d6e6fd84bca488b866a590 /source/lib
parent2c97b33fc0b5ef181dbf51a50cb61074935165bf (diff)
downloadsamba-39cec7f698c4461aee05cfbb213879fbd486117d.tar.gz
nterr.c :
added a structure that wraps nt errors as strings and enums, so we can do a smb_nt_error() function. Makefile ntclient.c : added ntclient.c, broken out nt domain stuff into a separate file. getting fed up of compile-times and size of client.c. fixed the do_lsa_req_chal() function. made it read the response, and return the challenge credentials received from the server. next stop: do_lsa_auth_2(). client.c : removed nt domain logon functions into a separate file. pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c : i'd broken the offsets of the RPC_HDR while trying to sort out the nt client code. fixed it again. added some robustness stuff. util.c : the unistrn2() function was null-terminating the string at one character too many.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 91e3581c30e..204d530e0bb 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -4304,7 +4304,7 @@ char *unistrn2(uint16 *buf, int len)
char *lbuf = lbufs[nexti];
char *p;
nexti = (nexti+1)%8;
- for (p = lbuf; *buf && p-lbuf < MAXUNI-2 && len >= 0; len--, p++, buf++)
+ for (p = lbuf; *buf && p-lbuf < MAXUNI-2 && len > 0; len--, p++, buf++)
{
*p = *buf;
}