diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-21 23:58:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-21 23:58:13 +0200 |
commit | a53dce1f8aaf497c1f7a23cf4fa3e982f9baabfb (patch) | |
tree | 1c4d7865d85e255680f431b7bda1f7a7a5cfef35 /src/dht/gnunet-service-dht_neighbours.c | |
parent | 627292a3ae6abca5cdf8055d5d333ad1157167f2 (diff) | |
download | gnunet-a53dce1f8aaf497c1f7a23cf4fa3e982f9baabfb.tar.gz gnunet-a53dce1f8aaf497c1f7a23cf4fa3e982f9baabfb.zip |
fix Bernd's signature violation discovery
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 07eb1a6c1..025f22c86 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1965,8 +1965,8 @@ handle_dht_p2p_put (void *cls, | |||
1965 | : (const char *) &put_path[putlen]; | 1965 | : (const char *) &put_path[putlen]; |
1966 | size_t var_meta_size | 1966 | size_t var_meta_size |
1967 | = putlen * sizeof(struct GNUNET_DHT_PathElement) | 1967 | = putlen * sizeof(struct GNUNET_DHT_PathElement) |
1968 | + has_path ? sizeof (*last_sig) : 0 | 1968 | + (has_path ? sizeof (*last_sig) : 0) |
1969 | + truncated ? sizeof (*trunc_peer) : 0; | 1969 | + (truncated ? sizeof (*trunc_peer) : 0); |
1970 | struct GNUNET_DATACACHE_Block bd = { | 1970 | struct GNUNET_DATACACHE_Block bd = { |
1971 | .key = put->key, | 1971 | .key = put->key, |
1972 | .expiration_time = GNUNET_TIME_absolute_ntoh (put->expiration_time), | 1972 | .expiration_time = GNUNET_TIME_absolute_ntoh (put->expiration_time), |