Skip to content

Commit e580c94

Browse files
committed
Fix recent commit 020a1fa as detected by ejabberd test auth_external_no_jid
1 parent d0ba144 commit e580c94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/xmpp_stream_pkix.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ get_domains_from_san(_) ->
187187
%% to the file
188188
%% /lib/public_key/src/public_key_internal.hrl
189189

190-
-spec decode_xmpp_addr({'AnotherName', any(), any()}) -> {ok, jid()} | error.
191-
decode_xmpp_addr({'AnotherName', ?'id-on-xmppAddr', XmppAddr}) ->
190+
-spec decode_xmpp_addr({atom(), any(), any()}) -> {ok, jid()} | error.
191+
decode_xmpp_addr({Record, ?'id-on-xmppAddr', XmppAddr} = AA)
192+
when (Record == 'AnotherName') or (Record == 'INSTANCE OF') ->
192193
try 'XmppAddr':decode('XmppAddr', XmppAddr) of
193194
{ok, JIDStr} ->
194195
try {ok, jid:decode(iolist_to_binary(JIDStr))}

0 commit comments

Comments
 (0)