summaryrefslogtreecommitdiffstats
path: root/source/lib/smbldap.c
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
commitc4896b17faa6802f18cc1cec7fcc6168bde2eef0 (patch)
tree7722bd614e9cb8673de914a18fdf74316cba3c8a /source/lib/smbldap.c
parentd48655d9c0b31d15327655140c021de29873d2c5 (diff)
downloadsamba-c4896b17faa6802f18cc1cec7fcc6168bde2eef0.tar.gz
samba-c4896b17faa6802f18cc1cec7fcc6168bde2eef0.tar.xz
samba-c4896b17faa6802f18cc1cec7fcc6168bde2eef0.zip
r16687: Fix bugs #3901, #3902, #3903 reported by jason@ncac.gwu.edu.
Jeremy
Diffstat (limited to 'source/lib/smbldap.c')
-rw-r--r--source/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/smbldap.c b/source/lib/smbldap.c
index 5b18f4e3113..a63e1c1bcc3 100644
--- a/source/lib/smbldap.c
+++ b/source/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;