aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_parser2.erl
diff options
context:
space:
mode:
authorKenneth Lundin <[email protected]>2012-04-25 16:46:21 +0200
committerKenneth Lundin <[email protected]>2012-05-04 15:15:29 +0200
commitbe01ab6d2cad9d5b139b36c79b1c7addd57d5265 (patch)
tree90d172a680fb8c93b71f6a2e9831a6796792afdf /lib/asn1/src/asn1ct_parser2.erl
parentb0534e7f668f12b0d48e139c5ddbfcd85eaff4ce (diff)
downloadotp-be01ab6d2cad9d5b139b36c79b1c7addd57d5265.tar.gz
otp-be01ab6d2cad9d5b139b36c79b1c7addd57d5265.tar.bz2
otp-be01ab6d2cad9d5b139b36c79b1c7addd57d5265.zip
Add support for multiple ExtensionAdditionGroups
Diffstat (limited to 'lib/asn1/src/asn1ct_parser2.erl')
-rw-r--r--lib/asn1/src/asn1ct_parser2.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_parser2.erl b/lib/asn1/src/asn1ct_parser2.erl
index 007d390a1b..7301f49085 100644
--- a/lib/asn1/src/asn1ct_parser2.erl
+++ b/lib/asn1/src/asn1ct_parser2.erl
@@ -769,9 +769,11 @@ resolve_module(_Type, Current, undefined) ->
Current;
resolve_module(Type, Current, Imports) ->
case [Mod || #'SymbolsFromModule'{symbols = S, module = Mod} <- Imports,
- #'Externaltypereference'{type = T} <- S,
+ #'Externaltypereference'{type = T} <- S,
Type == T] of
- [#'Externaltypereference'{type = Mod}] -> Mod;
+ [#'Externaltypereference'{type = Mod}|_] -> Mod;
+ %% This allows the same symbol to be imported several times
+ %% which ought to be checked elsewhere and flagged as an error
[] -> Current
end.