From 37bd0b655f2483b2a04fa4a53d55abcc7c9705bb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 15 Feb 2006 15:13:05 +0000 Subject: r13507: the 'data' element of LDAP controls is optional. (prepare the next commit) metze (This used to be commit a1bbf7f2982185cb6cd544b65b4709ab33a850c5) --- source4/dsdb/samdb/ldb_modules/extended_dn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn.c b/source4/dsdb/samdb/ldb_modules/extended_dn.c index 839c190a8e..9795758dc2 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn.c @@ -185,6 +185,9 @@ static int extended_search(struct ldb_module *module, struct ldb_request *req) } extended_ctrl = talloc_get_type(control->data, struct ldb_extended_dn_control); + if (!extended_ctrl) { + return LDB_ERR_PROTOCOL_ERROR; + } /* save it locally and remove it from the list */ if (!save_controls(control, req, &saved_controls)) { -- cgit