diff --git a/libasn1fix/asn1fix_export.c b/libasn1fix/asn1fix_export.c index 3a18ece0e07e934b94fb895f6ba9191ed80a474a..d6866fda30dc474e428cddd9efbacb6931bf6d44 100644 --- a/libasn1fix/asn1fix_export.c +++ b/libasn1fix/asn1fix_export.c @@ -43,15 +43,13 @@ asn1f_class_access_ex(asn1p_t *asn, } asn1p_expr_t * -asn1f_find_terminal_type_ex(asn1p_t *asn, - asn1p_module_t *mod, - asn1p_expr_t *expr) { +asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_expr_t *expr) { arg_t arg; memset(&arg, 0, sizeof(arg)); arg.asn = asn; - arg.mod = mod; + arg.mod = expr->module; arg.expr = expr; arg.eh = a1f_replace_me_with_proper_interface_arg.eh; arg.debug = a1f_replace_me_with_proper_interface_arg.debug; diff --git a/libasn1fix/asn1fix_export.h b/libasn1fix/asn1fix_export.h index 8ebe44875463337017a40c9a75c7b84466431aca..5879b93ff1f79e24608fc2788fa07263491681dd 100644 --- a/libasn1fix/asn1fix_export.h +++ b/libasn1fix/asn1fix_export.h @@ -31,8 +31,7 @@ asn1p_expr_t *asn1f_class_access_ex(asn1p_t *asn, asn1p_module_t *mod, /* * Exportable version of asn1f_find_terminal_type(). */ -asn1p_expr_t *asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_module_t *mod, - asn1p_expr_t *tc); +asn1p_expr_t *asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_expr_t *tc); /* * Exportable version of asn1f_fix_dereference_values();