From f9827c2ad157b9a5d26028ea6f3e7e1cec871ca1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Mar 2006 05:30:39 +0000 Subject: r14423: don't die on no controls (This used to be commit 9787fb8e917c22ffe910062630dc4f32473a9fab) --- source4/libcli/ldap/ldap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/libcli') diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c index 42cad3a63e..c1fc461b5f 100644 --- a/source4/libcli/ldap/ldap.c +++ b/source4/libcli/ldap/ldap.c @@ -1332,7 +1332,9 @@ BOOL ldap_decode(struct asn1_data *data, struct ldap_message *msg) } - ctrl[i] = NULL; + if (ctrl != NULL) { + ctrl[i] = NULL; + } msg->controls = ctrl; -- cgit