diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-02 19:25:28 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-02 19:25:28 +0000 |
commit | da41ac6e6b893566738e10f5ed076ac8e99ffe9e (patch) | |
tree | c8a2fb9b14a6e1a4dca879ac822b1b7d137f7e07 /source3/smbd | |
parent | 37742eb13f2822aea8795b33f96bea951ef05246 (diff) | |
download | samba-da41ac6e6b893566738e10f5ed076ac8e99ffe9e.tar.gz samba-da41ac6e6b893566738e10f5ed076ac8e99ffe9e.tar.bz2 samba-da41ac6e6b893566738e10f5ed076ac8e99ffe9e.zip |
Merge Andrew Bartletts (size_t)-1 checks.
Jeremy.
(This used to be commit 339f4fe15efbf67157c8e61b98c6ea983e6b4674)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/mangle_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle_hash.c b/source3/smbd/mangle_hash.c index 0446a953ff..d1c5cf1b5c 100644 --- a/source3/smbd/mangle_hash.c +++ b/source3/smbd/mangle_hash.c @@ -730,7 +730,7 @@ static void name_map(char *OutName, BOOL need83, BOOL cache83) DEBUG(5,("name_map( %s, need83 = %s, cache83 = %s)\n", OutName, need83 ? "True" : "False", cache83 ? "True" : "False")); - if (push_ucs2_allocate(&OutName_ucs2, OutName) < 0) { + if (push_ucs2_allocate(&OutName_ucs2, OutName) == (size_t)-1) { DEBUG(0, ("push_ucs2_allocate failed!\n")); return; } |