diff options
-rw-r--r-- | source4/libcli/ldap/ldap_controls.c | 4 |
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; |