diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-10-11 15:34:04 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-10-11 15:34:04 +0000 |
commit | a09f045ec14e7d61f335149e1587aba99168254a (patch) | |
tree | f21f499dad90262f27db1f139e5b84eda7b05f6f /src/dht | |
parent | 35f500039b0375503ff00b2b03aa1e75b9af46f5 (diff) | |
download | gnunet-a09f045ec14e7d61f335149e1587aba99168254a.tar.gz gnunet-a09f045ec14e7d61f335149e1587aba99168254a.zip |
Fixed order of PUT and GET paths from service to client
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 08b189a31..1a4e71314 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -858,10 +858,10 @@ GDS_CLIENTS_handle_reply (struct GNUNET_TIME_Absolute expiration, | |||
858 | reply->expiration = GNUNET_TIME_absolute_hton (expiration); | 858 | reply->expiration = GNUNET_TIME_absolute_hton (expiration); |
859 | reply->key = *key; | 859 | reply->key = *key; |
860 | paths = (struct GNUNET_PeerIdentity*) &reply[1]; | 860 | paths = (struct GNUNET_PeerIdentity*) &reply[1]; |
861 | memcpy (paths, get_path, | 861 | memcpy (paths, put_path, |
862 | sizeof (struct GNUNET_PeerIdentity) * get_path_length); | 862 | sizeof (struct GNUNET_PeerIdentity) * put_path_length); |
863 | memcpy (&paths[get_path_length], | 863 | memcpy (&paths[put_path_length], |
864 | put_path, sizeof (struct GNUNET_PeerIdentity) * put_path_length); | 864 | get_path, sizeof (struct GNUNET_PeerIdentity) * get_path_length); |
865 | memcpy (&paths[get_path_length + put_path_length], | 865 | memcpy (&paths[get_path_length + put_path_length], |
866 | data, | 866 | data, |
867 | data_size); | 867 | data_size); |