r14424: another empty controls case
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Mar 2006 05:31:51 +0000 (05:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:21 +0000 (13:57 -0500)
(This used to be commit 7d0eb678bf3649fb4e09da039dd1b716ea3df2cc)

source4/libcli/ldap/ldap_controls.c

index 373b71d3709ea594e0897c838dd3a4e807f971e8..ccb1b74a558e06765c48ab3154c634f006a9501e 100644 (file)
@@ -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;