mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
libgpo: parse_gp_ext: do not crash upon no ext_strings
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
a18ffe26b3
commit
7c01a44f18
@ -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] == '{') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user