diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-13 13:29:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:36 -0500 |
commit | ac51ffb77b70ef1387f454dc128d1aa1c4d3be89 (patch) | |
tree | 53eb1c9bb94757e6955ca19c80ec95528ec7ca12 /source3/smbd | |
parent | 6eca5f5042c95f4532aac46e136a9bff5c45cbc2 (diff) | |
download | samba-ac51ffb77b70ef1387f454dc128d1aa1c4d3be89.tar.gz samba-ac51ffb77b70ef1387f454dc128d1aa1c4d3be89.tar.bz2 samba-ac51ffb77b70ef1387f454dc128d1aa1c4d3be89.zip |
r23866: Fix a 1-byte buffer overrun
(This used to be commit 2ed83d36fec918e6ad9605f43e1a49fa5b61f17b)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/mangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c index f69c940539..fce86903f2 100644 --- a/source3/smbd/mangle.c +++ b/source3/smbd/mangle.c @@ -119,7 +119,7 @@ BOOL mangle_check_cache_alloc(const char *name, char **presult, char *result; pstrcpy(tmp, name); - if (!mangle_check_cache(tmp, sizeof(pstring), p) + if (!mangle_check_cache(tmp, sizeof(pstring)-1, p) || !(result = SMB_STRDUP(tmp))) { return False; } |