diff options
author | Paul Fariello <paul@fariello.eu> | 2019-02-26 20:33:06 +0140 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 16:03:50 +0200 |
commit | 0fb27dc4961608eb9b088ca659eb087dd2c1cae7 (patch) | |
tree | caf8fd8ac5d330e98376b98f471115303b8cc523 /src/xmpp/omemo.c | |
parent | b1ae220aa47ff503fe368e4802061be159dfb42b (diff) | |
download | profani-tty-0fb27dc4961608eb9b088ca659eb087dd2c1cae7.tar.gz |
Add OMEMO message encryption and decryption
Diffstat (limited to 'src/xmpp/omemo.c')
-rw-r--r-- | src/xmpp/omemo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c index 709b6ad8..048126fa 100644 --- a/src/xmpp/omemo.c +++ b/src/xmpp/omemo.c @@ -93,7 +93,7 @@ omemo_start_device_session_handle_bundle(xmpp_stanza_t *const stanza, void *cons return 1; } - if (!g_strcmp0(from, userdata)) { + if (g_strcmp0(from, userdata) != 0) { return 1; } @@ -112,7 +112,7 @@ omemo_start_device_session_handle_bundle(xmpp_stanza_t *const stanza, void *cons return 1; } - uint32_t device_id = strtoul(device_id_str, NULL, 10); + uint32_t device_id = strtoul(++device_id_str, NULL, 10); xmpp_stanza_t *item = xmpp_stanza_get_child_by_name(items, "item"); if (!item) { |