aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.c
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_unix.c
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_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 289fea0b6..b7e10b720 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -82,9 +82,10 @@ struct UNIXMessage
82 82
83struct Session 83struct Session
84{ 84{
85 struct GNUNET_PeerIdentity target;
86
85 void *addr; 87 void *addr;
86 size_t addrlen; 88 size_t addrlen;
87 struct GNUNET_PeerIdentity target;
88 89
89 /** 90 /**
90 * Session timeout task 91 * Session timeout task