diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-23 22:31:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-23 22:31:43 +0000 |
commit | e4b5a6b681d196cb233bf15a91060e3585933aa1 (patch) | |
tree | 882df975f2295b6a0ab6ad6a5a26b52b72d6d48d /src/transport/plugin_transport_unix.c | |
parent | 4029c07550295659b391220324f348f4b1a86381 (diff) | |
download | gnunet-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.c | 3 |
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 | ||
83 | struct Session | 83 | struct 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 |