summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-05 09:31:41 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-05 17:48:08 +0100
commit0fe9980fa08ac488f19086d650646017acaaf6e9 (patch)
treeafb12a666ea3c6fdc61a785a84e254d32dcb984c /source4
parentfdd6c106cf236150e4c5e7c6176156230c3ccfa9 (diff)
downloadsamba-0fe9980fa08ac488f19086d650646017acaaf6e9.tar.gz
samba-0fe9980fa08ac488f19086d650646017acaaf6e9.tar.bz2
samba-0fe9980fa08ac488f19086d650646017acaaf6e9.zip
LDAP-UPTODATEVECTOR: fix segfault against samba4 as server
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/selftest/skip1
-rw-r--r--source4/torture/ldap/uptodatevector.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/source4/selftest/skip b/source4/selftest/skip
index f1500ff315..291ad8472d 100644
--- a/source4/selftest/skip
+++ b/source4/selftest/skip
@@ -42,7 +42,6 @@ ntvfs.cifs.raw.context
ntvfs.cifs.raw.qfileinfo.ipc
rpc.dssync
rpc.samsync
-ldap.uptodatevector # Segfaults
rpc.remact # Not provided by Samba 4
rpc.oxidresolve # Not provided by Samba 4
rpc.eventlog # Not provided by Samba 4
diff --git a/source4/torture/ldap/uptodatevector.c b/source4/torture/ldap/uptodatevector.c
index 6200f4c3de..bf32edb065 100644
--- a/source4/torture/ldap/uptodatevector.c
+++ b/source4/torture/ldap/uptodatevector.c
@@ -127,6 +127,7 @@ static bool test_check_uptodatevector(struct torture_context *torture,
no_match = true;
} else if (utdv_val1 && !utdv_val) {
no_match = true;
+ } else if (!utdv_val1 && !utdv_val) {
} else if (utdv_val1->length != utdv_val->length) {
no_match = true;
} else if (utdv_val1->length && memcmp(utdv_val1->data, utdv_val->data, utdv_val->length) != 0) {