diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-29 21:27:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-29 21:27:57 +0000 |
commit | 5ca824a682bbcd9331f32935f9b423ae6d468816 (patch) | |
tree | 049e58740ad501eb0d888e98eac22006ff830250 /source3/lib | |
parent | e893948e04136ed5b9ba08373a93dd55f81e2e24 (diff) | |
download | samba-5ca824a682bbcd9331f32935f9b423ae6d468816.tar.gz samba-5ca824a682bbcd9331f32935f9b423ae6d468816.tar.bz2 samba-5ca824a682bbcd9331f32935f9b423ae6d468816.zip |
Fixes to check for wraps which could cause coredumps.
Jeremy.
(This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/smbldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 8f58e80dde..fe34cfb852 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -258,6 +258,7 @@ BOOL fetch_ldap_pw(char **dn, char** pw) return False; } + size = MIN(size, sizeof(fstring)-1); strncpy(old_style_pw, data, size); old_style_pw[size] = 0; |