summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 05:31:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:21 -0500
commit07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9 (patch)
treeaa6dcc9aa84c0459a2aea08bf7bdad9ed3634e16 /source4
parentf9827c2ad157b9a5d26028ea6f3e7e1cec871ca1 (diff)
downloadsamba-07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9.tar.gz
samba-07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9.tar.bz2
samba-07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9.zip
r14424: another empty controls case
(This used to be commit 7d0eb678bf3649fb4e09da039dd1b716ea3df2cc)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/ldap/ldap_controls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c
index 373b71d370..ccb1b74a55 100644
--- a/source4/libcli/ldap/ldap_controls.c
+++ b/source4/libcli/ldap/ldap_controls.c
@@ -137,7 +137,9 @@ static BOOL decode_server_sort_request(void *mem_ctx, DATA_BLOB in, void **out)
}
}
- lssc[num] = NULL;
+ if (lssc != NULL) {
+ lssc[num] = NULL;
+ }
if (!asn1_end_tag(&data)) {
return False;