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

This commit is contained in:
Сергей Прохоров 2019-05-20 20:49:31 +02:00
parent 6a88feb97b
commit c8804a16bb
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -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.