Fix crash when processing S1AP

Ref :

https://github.com/vlm/asn1c/pull/237#issuecomment-342356046
This commit is contained in:
Bi-Ruei, Chiu 2017-11-14 15:16:24 +08:00 committed by Lev Walkin
parent f9a94dfa1d
commit 288e95d5b1
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ asn1f_lookup_in_imports(arg_t *arg, asn1p_module_t *mod, const char *name) {
if(!fromModule)
continue;
asn1p_expr_t *v = v =
asn1f_lookup_in_module(fromModule, tc->Identifier);
asn1p_expr_t *v =
asn1f_lookup_in_module(fromModule, name);
if(v) break;
}
if(tc) break;