summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgpo/gpo_ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c
index e5a5adb7235..2d95f74276c 100644
--- a/libgpo/gpo_ldap.c
+++ b/libgpo/gpo_ldap.c
@@ -98,7 +98,9 @@ bool ads_parse_gp_ext(TALLOC_CTX *mem_ctx,
for (k = 0; ext_strings[k] != NULL; k++) {
/* no op */
}
-
+ if (k == 0) {
+ goto parse_error;
+ }
q = ext_strings[0];
if (q[0] == '{') {