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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c
index 1b9f5fb72..260045602 100644
--- a/src/transport/plugin_transport_smtp.c
+++ b/src/transport/plugin_transport_smtp.c
@@ -420,9 +420,8 @@ api_verify_hello (const GNUNET_MessageHello * hello)
420 maddr = (const EmailAddress *) &hello[1]; 420 maddr = (const EmailAddress *) &hello[1];
421 if ((ntohs (hello->header.size) != 421 if ((ntohs (hello->header.size) !=
422 sizeof (GNUNET_MessageHello) + ntohs (hello->senderAddressSize)) || 422 sizeof (GNUNET_MessageHello) + ntohs (hello->senderAddressSize)) ||
423 (maddr-> 423 (maddr->senderAddress
424 senderAddress[ntohs (hello->senderAddressSize) - 1 - 424 [ntohs (hello->senderAddressSize) - 1 - FILTER_STRING_SIZE] != '\0'))
425 FILTER_STRING_SIZE] != '\0'))
426 { 425 {
427 GNUNET_GE_BREAK (ectx, 0); 426 GNUNET_GE_BREAK (ectx, 0);
428 return GNUNET_SYSERR; /* obviously invalid */ 427 return GNUNET_SYSERR; /* obviously invalid */