aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_smtp.c')
-rw-r--r--src/transport/plugin_transport_smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c
index 0ccf3f7bf..876f81ce3 100644
--- a/src/transport/plugin_transport_smtp.c
+++ b/src/transport/plugin_transport_smtp.c
@@ -325,7 +325,7 @@ api_create_hello ()
325 haddr = (EmailAddress *) &msg[1]; 325 haddr = (EmailAddress *) &msg[1];
326 memset (&haddr->filter[0], 0, FILTER_STRING_SIZE); 326 memset (&haddr->filter[0], 0, FILTER_STRING_SIZE);
327 strcpy (&haddr->filter[0], filter); 327 strcpy (&haddr->filter[0], filter);
328 memcpy (&haddr->senderAddress[0], email, strlen (email) + 1); 328 GNUNET_memcpy (&haddr->senderAddress[0], email, strlen (email) + 1);
329 msg->senderAddressSize = htons (strlen (email) + 1 + sizeof (EmailAddress)); 329 msg->senderAddressSize = htons (strlen (email) + 1 + sizeof (EmailAddress));
330 msg->protocol = htons (GNUNET_TRANSPORT_PROTOCOL_NUMBER_SMTP); 330 msg->protocol = htons (GNUNET_TRANSPORT_PROTOCOL_NUMBER_SMTP);
331 msg->MTU = htonl (smtpAPI.mtu); 331 msg->MTU = htonl (smtpAPI.mtu);
@@ -463,7 +463,7 @@ api_send (GNUNET_TSession * tsession, const void *msg, const unsigned int size,
463 } 463 }
464 GNUNET_free (filter); 464 GNUNET_free (filter);
465 m = GNUNET_malloc (size + sizeof (SMTPMessage)); 465 m = GNUNET_malloc (size + sizeof (SMTPMessage));
466 memcpy (m, msg, size); 466 GNUNET_memcpy (m, msg, size);
467 mp = (SMTPMessage *) &m[size]; 467 mp = (SMTPMessage *) &m[size];
468 mp->header.size = htons (size + sizeof (SMTPMessage)); 468 mp->header.size = htons (size + sizeof (SMTPMessage));
469 mp->header.type = htons (0); 469 mp->header.type = htons (0);
@@ -544,7 +544,7 @@ api_connect (const GNUNET_MessageHello * hello, GNUNET_TSession ** tsessionPtr,
544 tsession = GNUNET_new (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 GNUNET_memcpy (tsession->internal, hello, GNUNET_sizeof_hello (hello));
548 tsession->ttype = smtpAPI.protocol_number; 548 tsession->ttype = smtpAPI.protocol_number;
549 (*tsessionPtr) = tsession; 549 (*tsessionPtr) = tsession;
550 return GNUNET_OK; 550 return GNUNET_OK;