summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-29 18:01:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:08 -0500
commit8bd19b15e3db1d7c4d96298182114ef15bde2f78 (patch)
treec7fb0596fae82c8d663dbb2079ca560023638456 /source3/lib
parent8f0ea257b61f435060cfe6995e238c6d4b07de21 (diff)
downloadsamba-8bd19b15e3db1d7c4d96298182114ef15bde2f78.tar.gz
samba-8bd19b15e3db1d7c4d96298182114ef15bde2f78.tar.xz
samba-8bd19b15e3db1d7c4d96298182114ef15bde2f78.zip
r16687: Fix bugs #3901, #3902, #3903 reported by jason@ncac.gwu.edu.
Jeremy (This used to be commit c4896b17faa6802f18cc1cec7fcc6168bde2eef0)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 5b18f4e3113..a63e1c1bcc3 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -325,7 +325,7 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
return NULL;
}
- if (pull_utf8_talloc(mem_ctx, &result, values[0]) < 0) {
+ if (pull_utf8_talloc(mem_ctx, &result, values[0]) == (size_t)-1) {
DEBUG(10, ("pull_utf8_talloc failed\n"));
ldap_value_free(values);
return NULL;