summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-20 21:59:34 +0000
committerJeremy Allison <jra@samba.org>2001-10-20 21:59:34 +0000
commit88b55f47b4914f7d390939e4394ec3edd42be91f (patch)
tree3153cf9871570a55fe1476b6ad45d9c5b6c72846 /source3/libsmb
parente5868e1f57c1de537a7385a81d23671a727af5f5 (diff)
downloadsamba-88b55f47b4914f7d390939e4394ec3edd42be91f.tar.gz
samba-88b55f47b4914f7d390939e4394ec3edd42be91f.tar.bz2
samba-88b55f47b4914f7d390939e4394ec3edd42be91f.zip
Move from timestamp to gen count file id's for finding oplocked files
in a tdb. Jeremy. (This used to be commit 058ae6b58f61ef46013dd076af3a84de5fbaaab1)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c
index 5da67de95c..5a834e7b7a 100644
--- a/source3/libsmb/clirap2.c
+++ b/source3/libsmb/clirap2.c
@@ -586,7 +586,7 @@ int cli_NetUserAdd(struct cli_state *cli, RAP_USER_INFO_1 * userinfo )
PUTWORD(p, 0); /* pwencrypt */
if(userinfo->passwrd)
- PUTWORD(p,strnlen(userinfo->passwrd, RAP_UPASSWD_LEN));
+ PUTWORD(p,MIN(strlen(userinfo->passwrd), RAP_UPASSWD_LEN));
else
PUTWORD(p, 0); /* password length */