git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libgpo: parse_gp_ext: do not crash upon no ext_strings
[samba.git]
/
libgpo
/
gpo_ldap.c
diff --git
a/libgpo/gpo_ldap.c
b/libgpo/gpo_ldap.c
index e5a5adb723593273ae73005395404a3d9f7092df..2d95f74276ccc015263bac0812491761e39af55a 100644
(file)
--- 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] == '{') {