diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-01 14:31:53 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-01 14:31:53 +0200 |
commit | 40417a284d7d1383645cb0c7bd99c3f993bcb6ae (patch) | |
tree | 54b00cccc40123c790a483bee3e1b94fc2735526 /src | |
parent | a36485c5380917777ae3b8f7b43ecbd18518511d (diff) | |
download | gnunet-40417a284d7d1383645cb0c7bd99c3f993bcb6ae.tar.gz gnunet-40417a284d7d1383645cb0c7bd99c3f993bcb6ae.zip |
-nullptr
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 7 |
1 files 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, | |||
2479 | + bd->put_path_length)]; | 2479 | + bd->put_path_length)]; |
2480 | struct GNUNET_DATACACHE_Block bdx = *bd; | 2480 | struct GNUNET_DATACACHE_Block bdx = *bd; |
2481 | 2481 | ||
2482 | GNUNET_memcpy (xput_path, | 2482 | if (NULL != bd->put_path) |
2483 | bd->put_path, | 2483 | GNUNET_memcpy (xput_path, |
2484 | bd->put_path_length * sizeof(struct GNUNET_DHT_PathElement)); | 2484 | bd->put_path, |
2485 | bd->put_path_length * sizeof(struct GNUNET_DHT_PathElement)); | ||
2485 | GNUNET_memcpy (&xput_path[bd->put_path_length], | 2486 | GNUNET_memcpy (&xput_path[bd->put_path_length], |
2486 | get_path, | 2487 | get_path, |
2487 | get_path_length * sizeof(struct GNUNET_DHT_PathElement)); | 2488 | get_path_length * sizeof(struct GNUNET_DHT_PathElement)); |