Make sure stored "session fingerprint" is not referring larger binary

parent 6a88feb9
......@@ -128,7 +128,7 @@ code_change(_OldVsn, State, _Extra) ->
fingerprint(<<_:8/binary, KeyIV:(32 + 16)/binary, _:8/binary>>) ->
%% It would be better to use whole 64b packet as fingerprint, but will use only
%% 48b Key + IV part to save some space.
KeyIV.
binary:copy(KeyIV).
bucket(Timestamp) ->
Timestamp div ?HISTOGRAM_BUCKET_SIZE.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment