gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -nullptr


From: gnunet
Subject: [gnunet] branch master updated: -nullptr
Date: Thu, 01 Sep 2022 14:44:43 +0200

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 40417a284 -nullptr
40417a284 is described below

commit 40417a284d7d1383645cb0c7bd99c3f993bcb6ae
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Sep 1 14:31:53 2022 +0200

    -nullptr
---
 src/dht/gnunet-service-dht_neighbours.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/dht/gnunet-service-dht_neighbours.c 
b/src/dht/gnunet-service-dht_neighbours.c
index 3344824b3..65b3014fd 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -2479,9 +2479,10 @@ process_reply_with_path (const struct 
GNUNET_DATACACHE_Block *bd,
                                                         + 
bd->put_path_length)];
     struct GNUNET_DATACACHE_Block bdx = *bd;
 
-    GNUNET_memcpy (xput_path,
-                   bd->put_path,
-                   bd->put_path_length * sizeof(struct 
GNUNET_DHT_PathElement));
+    if (NULL != bd->put_path)
+      GNUNET_memcpy (xput_path,
+                     bd->put_path,
+                     bd->put_path_length * sizeof(struct 
GNUNET_DHT_PathElement));
     GNUNET_memcpy (&xput_path[bd->put_path_length],
                    get_path,
                    get_path_length * sizeof(struct GNUNET_DHT_PathElement));

-- 
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]