[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: -writing identity keys to buffer consistently
From: |
gnunet |
Subject: |
[gnunet] 01/02: -writing identity keys to buffer consistently |
Date: |
Thu, 18 Nov 2021 23:41:01 +0100 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
commit fab0c5c8e3ed517a29e8f9dbf2afb89690ed75c6
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Thu Nov 18 23:39:53 2021 +0100
-writing identity keys to buffer consistently
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
src/identity/identity_api.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 22371f91a..08a975e65 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2013, 2016 GNUnet e.V.
+ Copyright (C) 2013, 2016, 2021 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -1020,7 +1020,9 @@ GNUNET_IDENTITY_write_key_to_buffer (const struct
return -1;
if (length < 0)
return -2;
- GNUNET_memcpy (buffer, key, length);
+ GNUNET_memcpy (buffer, &(key->type), sizeof (key->type));
+ GNUNET_memcpy (buffer + sizeof (key->type), &(key->ecdsa_key), length
+ - sizeof (key->type));
return length;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.