X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fplugin_transport_smtp.c;h=b589e117786b61ae6e49e1b7149f4609c02511ca;hb=f181f6eaf8cdb1fdb47dc98cf171ad1be842b441;hp=1b9f5fb7271ab128a4b6695201334ce61583951c;hpb=5746309cb4be2073d550ad7a6885e918631dbc38;p=oweals%2Fgnunet.git diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index 1b9f5fb72..b589e1177 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c @@ -40,7 +40,7 @@ */ #define SMTP_MESSAGE_SIZE 65528 -#define DEBUG_SMTP GNUNET_NO +#define DEBUG_SMTP GNUNET_EXTRA_LOGGING #define FILTER_STRING_SIZE 64 @@ -72,6 +72,8 @@ typedef struct } EmailAddress; +GNUNET_NETWORK_STRUCT_BEGIN + /** * Encapsulation of a GNUnet message in the SMTP mail body (before * base64 encoding). @@ -86,6 +88,7 @@ typedef struct GNUNET_PeerIdentity sender; } SMTPMessage; +GNUNET_NETWORK_STRUCT_END /* *********** globals ************* */ @@ -420,9 +423,8 @@ api_verify_hello (const GNUNET_MessageHello * hello) maddr = (const EmailAddress *) &hello[1]; if ((ntohs (hello->header.size) != sizeof (GNUNET_MessageHello) + ntohs (hello->senderAddressSize)) || - (maddr-> - senderAddress[ntohs (hello->senderAddressSize) - 1 - - FILTER_STRING_SIZE] != '\0')) + (maddr->senderAddress + [ntohs (hello->senderAddressSize) - 1 - FILTER_STRING_SIZE] != '\0')) { GNUNET_GE_BREAK (ectx, 0); return GNUNET_SYSERR; /* obviously invalid */