aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_smtp.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/transport/plugin_transport_smtp.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/transport/plugin_transport_smtp.c')
-rw-r--r--src/transport/plugin_transport_smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c
index c886fd132..fd2089367 100644
--- a/src/transport/plugin_transport_smtp.c
+++ b/src/transport/plugin_transport_smtp.c
@@ -233,7 +233,7 @@ listenAndDistribute (void *unused)
233 } 233 }
234 if (stats != NULL) 234 if (stats != NULL)
235 stats->change (stat_bytesReceived, size); 235 stats->change (stat_bytesReceived, size);
236 coreMP = GNUNET_malloc (sizeof (GNUNET_TransportPacket)); 236 coreMP = GNUNET_new (GNUNET_TransportPacket);
237 coreMP->msg = out; 237 coreMP->msg = out;
238 coreMP->size = size - sizeof (SMTPMessage); 238 coreMP->size = size - sizeof (SMTPMessage);
239 coreMP->tsession = NULL; 239 coreMP->tsession = NULL;
@@ -541,7 +541,7 @@ api_connect (const GNUNET_MessageHello * hello, GNUNET_TSession ** tsessionPtr,
541{ 541{
542 GNUNET_TSession *tsession; 542 GNUNET_TSession *tsession;
543 543
544 tsession = GNUNET_malloc (sizeof (GNUNET_TSession)); 544 tsession = GNUNET_new (GNUNET_TSession);
545 tsession->internal = GNUNET_malloc (GNUNET_sizeof_hello (hello)); 545 tsession->internal = GNUNET_malloc (GNUNET_sizeof_hello (hello));
546 tsession->peer = hello->senderIdentity; 546 tsession->peer = hello->senderIdentity;
547 memcpy (tsession->internal, hello, GNUNET_sizeof_hello (hello)); 547 memcpy (tsession->internal, hello, GNUNET_sizeof_hello (hello));