Call the right c function from Session.matches_inbound. It was calling create_inbound_session rather than matches_inbound_session

This commit is contained in:
Mark Haines 2015-07-15 12:45:50 +01:00
parent bede3a8499
commit c965a0e619

View file

@ -252,7 +252,7 @@ class Session(object):
def matches_inbound(self, one_time_key_message):
one_time_key_message_buffer = create_string_buffer(one_time_key_message)
return bool(lib.olm_create_inbound_session(
return bool(lib.olm_matches_inbound_session(
self.ptr,
one_time_key_message_buffer, len(one_time_key_message)
))