From 07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Mar 2006 05:31:51 +0000 Subject: r14424: another empty controls case (This used to be commit 7d0eb678bf3649fb4e09da039dd1b716ea3df2cc) --- source4/libcli/ldap/ldap_controls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') 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; -- cgit