Skip to content

Commit

Permalink
Fix unbound type
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 26, 2024
1 parent 8f2e9be commit 1a45000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erldns_zone_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ json_record_to_erlang([Name, <<"TXT">>, Ttl, _Data, _Context, Value]) when is_li
data = #dns_rrdata_txt{txt = Value},
ttl = Ttl
};
json_record_to_erlang([Name, <<"TXT">>, Ttl, Data, _Context, Value]) ->
json_record_to_erlang([Name, Type = <<"TXT">>, Ttl, Data, _Context, Value]) ->
%% This function call may crash. Handle it as a bad record.
try erldns_txt:parse(Value) of
ParsedText ->
Expand Down

0 comments on commit 1a45000

Please sign in to comment.