aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_connection.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-12-15 07:17:48 +0000
committerBart Polot <bart@net.in.tum.de>2014-12-15 07:17:48 +0000
commit5e0f453439e63444ba8d3909529be60877677344 (patch)
tree6d3cad0406240a42bf5a79e3ec42fadda5898f51 /src/cadet/gnunet-service-cadet_connection.h
parent5b4cc3b00e086a34f8dbcbf00f878f4a5850ea51 (diff)
downloadgnunet-5e0f453439e63444ba8d3909529be60877677344.tar.gz
gnunet-5e0f453439e63444ba8d3909529be60877677344.zip
Fix memory corruption: new connection always makes copy of path.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.h')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.h b/src/cadet/gnunet-service-cadet_connection.h
index 6a2eff7de..b8edcdef9 100644
--- a/src/cadet/gnunet-service-cadet_connection.h
+++ b/src/cadet/gnunet-service-cadet_connection.h
@@ -265,15 +265,15 @@ GCC_shutdown (void);
265 * 265 *
266 * @param cid Connection ID (either created locally or imposed remotely). 266 * @param cid Connection ID (either created locally or imposed remotely).
267 * @param t Tunnel this connection belongs to (or NULL); 267 * @param t Tunnel this connection belongs to (or NULL);
268 * @param p Path this connection has to use. 268 * @param path Path this connection has to use (copy is made).
269 * @param own_pos Own position in the @c p path. 269 * @param own_pos Own position in the @c path path.
270 * 270 *
271 * @return Newly created connection, NULL in case of error (own id not in path). 271 * @return Newly created connection, NULL in case of error (own id not in path).
272 */ 272 */
273struct CadetConnection * 273struct CadetConnection *
274GCC_new (const struct GNUNET_CADET_Hash *cid, 274GCC_new (const struct GNUNET_CADET_Hash *cid,
275 struct CadetTunnel *t, 275 struct CadetTunnel *t,
276 struct CadetPeerPath *p, 276 struct CadetPeerPath *path,
277 unsigned int own_pos); 277 unsigned int own_pos);
278 278
279/** 279/**