mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "main/config_options: Check for existance of internal object before derefing" into 13
This commit is contained in:
@@ -837,6 +837,10 @@ int aco_set_defaults(struct aco_type *type, const char *category, void *obj)
|
||||
struct aco_option *opt;
|
||||
struct ao2_iterator iter;
|
||||
|
||||
if (!type->internal) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
iter = ao2_iterator_init(type->internal->opts, 0);
|
||||
|
||||
while ((opt = ao2_iterator_next(&iter))) {
|
||||
|
Reference in New Issue
Block a user