- /* Possibly dump a raw hex image of the message to the log channel. */
- message_dump_raw ("message_recv", msg, LOG_MESSAGE);
-
/* Messages shorter than an ISAKMP header are bad. */
if (sz < ISAKMP_HDR_SZ || sz != GET_ISAKMP_HDR_LENGTH (buf))
{
@@ -890,6 +887,11 @@
message_drop (msg, ISAKMP_NOTIFY_UNEQUAL_PAYLOAD_LENGTHS, 0, 1, 1);
return -1;
}
+
+#ifdef USE_DEBUG
+ /* Possibly dump a raw hex image of the message to the log channel. */
+ message_dump_raw ("message_recv", msg, LOG_MESSAGE);
+#endif
/*
* If the responder cookie is zero, this is a request to setup an ISAKMP SA.