[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix key decoding issue in messenger
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix key decoding issue in messenger |
Date: |
Tue, 01 Nov 2022 23:21:22 +0100 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new d0bb22536 -fix key decoding issue in messenger
d0bb22536 is described below
commit d0bb2253612f7272bb3b430b070847bafca8c297
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Tue Nov 1 23:21:16 2022 +0100
-fix key decoding issue in messenger
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
src/messenger/messenger_api_message.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/messenger/messenger_api_message.c
b/src/messenger/messenger_api_message.c
index 2e4f46bff..dba08b40b 100644
--- a/src/messenger/messenger_api_message.c
+++ b/src/messenger/messenger_api_message.c
@@ -539,14 +539,15 @@ encode_short_message (const struct
GNUNET_MESSENGER_ShortMessage *message,
} while (0)
#define decode_step_key(src, offset, dst, length) do { \
+ enum GNUNET_GenericReturnValue result; \
size_t read; \
- ssize_t result = GNUNET_IDENTITY_read_public_key_from_buffer( \
+ result = GNUNET_IDENTITY_read_public_key_from_buffer( \
src + offset, length - offset, dst, &read \
); \
- if (result < 0) \
+ if (GNUNET_SYSERR == result) \
GNUNET_break(0); \
else \
- offset += result; \
+ offset += read; \
} while (0)
static uint16_t
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix key decoding issue in messenger,
gnunet <=