aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-23 22:31:43 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-23 22:31:43 +0000
commite4b5a6b681d196cb233bf15a91060e3585933aa1 (patch)
tree882df975f2295b6a0ab6ad6a5a26b52b72d6d48d /src/transport/plugin_transport_http.h
parent4029c07550295659b391220324f348f4b1a86381 (diff)
downloadgnunet-e4b5a6b681d196cb233bf15a91060e3585933aa1.tar.gz
gnunet-e4b5a6b681d196cb233bf15a91060e3585933aa1.zip
-LRN: Check session target:
It changes the Session object layout to make peer identity its first field, always, for all sessions. Code in find_session() can use this to check that the session belongs to the right peer. test_ats_api_add_address always triggers this due to the way it fakes a pointer to session object.
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index 986d7d797..dc0f8bb01 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -339,6 +339,10 @@ struct ServerConnection
339 */ 339 */
340struct Session 340struct Session
341{ 341{
342 /**
343 * To whom are we talking to
344 */
345 struct GNUNET_PeerIdentity target;
342 346
343 /** 347 /**
344 * Stored in a linked list. 348 * Stored in a linked list.
@@ -371,11 +375,6 @@ struct Session
371 uint32_t ats_address_network_type; 375 uint32_t ats_address_network_type;
372 376
373 /** 377 /**
374 * To whom are we talking to
375 */
376 struct GNUNET_PeerIdentity target;
377
378 /**
379 * next pointer for double linked list 378 * next pointer for double linked list
380 */ 379 */
381 struct HTTP_Message *msg_head; 380 struct HTTP_Message *msg_head;