From 065a74bc56b1328798254a7f4b2f39f0db876a00 Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Sun, 22 Aug 2004 03:23:15 +0000
Subject: [PATCH] api change reflection

---
 libasn1compiler/asn1c_misc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c
index c30174bb..be3446a9 100644
--- a/libasn1compiler/asn1c_misc.c
+++ b/libasn1compiler/asn1c_misc.c
@@ -99,9 +99,10 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) {
 			 * Resolve it and use instead.
 			 */
 			tmp.expr = asn1f_class_access_ex(arg->asn, arg->mod,
-				arg->expr, expr->reference, &tmp.mod);
+				arg->expr, expr->reference);
 			if(tmp.expr) return NULL;
 
+			tmp.mod = tmp.expr->module;
 			return asn1c_type_name(&tmp, tmp.expr, _format);
 		} else if(_format == TNF_RSAFE) {
 			/*
-- 
GitLab