gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -fix endianess conversion for url_counte


From: gnunet
Subject: [gnunet] branch master updated: -fix endianess conversion for url_counter
Date: Sun, 12 Jun 2022 17:41:21 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 14da59e43 -fix endianess conversion for url_counter
14da59e43 is described below

commit 14da59e43311204cadc883cd3688be08bd77b6a8
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jun 12 17:41:12 2022 +0200

    -fix endianess conversion for url_counter
---
 src/hello/hello-uri.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hello/hello-uri.c b/src/hello/hello-uri.c
index c8e9b9f06..dd191738f 100644
--- a/src/hello/hello-uri.c
+++ b/src/hello/hello-uri.c
@@ -572,7 +572,7 @@ GNUNET_HELLO_builder_to_env (const struct 
GNUNET_HELLO_Builder *builder,
   env = GNUNET_MQ_msg_extra (msg,
                              blen,
                              GNUNET_MESSAGE_TYPE_HELLO_URI);
-  msg->url_counter = htonl ((uint16_t) builder->a_length);
+  msg->url_counter = htons ((uint16_t) builder->a_length);
   GNUNET_assert (GNUNET_OK ==
                  GNUNET_HELLO_builder_to_block (builder,
                                                 priv,
@@ -625,7 +625,7 @@ GNUNET_HELLO_builder_to_dht_hello_msg (
     msg->sig = block->sig;
     msg->expiration_time = block->expiration_time;
   }
-  msg->url_counter = htonl ((uint16_t) builder->a_length);
+  msg->url_counter = htons ((uint16_t) builder->a_length);
   return &msg->header;
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]