diff options
Diffstat (limited to 'src/acme_challenge.erl')
-rw-r--r-- | src/acme_challenge.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/acme_challenge.erl b/src/acme_challenge.erl index c8491e9c2..2bc6ccbb5 100644 --- a/src/acme_challenge.erl +++ b/src/acme_challenge.erl @@ -96,8 +96,9 @@ ets_put_key_authorization(Tkn, KeyAuthz) -> -spec ets_get_key_authorization([bitstring()]) -> bitstring(). ets_get_key_authorization(Key) -> Tab = ets_get_acme_table(), - case ets:take(Tab, Key) of + case ets:lookup(Tab, Key) of [{Key, KeyAuthz}] -> + ets:delete(Tab, Key), KeyAuthz; _ -> ?ERROR_MSG("Unable to serve key authorization in: ~p", [Key]), |