[Asterisk-Dev] app_directory crash because of ast_variable_browse()

Frank Contrepois f.contrepois at telvia.it
Wed Mar 26 10:27:26 MST 2003


Hi
If I put a non valid context in the app_directory value

es:
exten => 2503,1,Directory(NotWorking)

and I try to use the directory, asterisk Crash!!!

the problem is in the following function
v = ast_variable_browse(cfg, context);
in
static int do_directory(struct ast_channel *chan, struct ast_config 
*cfg, char *context, char digit)

in app_directory.c

It looks like ast_variable_browse()  doesn't handle the case of a 
context not available.

Thanks
Frank Contrepois




More information about the asterisk-dev mailing list