return offset value
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 16:58:58 +0000 (18:58 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 16:58:58 +0000 (18:58 +0200)
src/libcharon/plugins/tnccs_20/messages/pb_error_msg.c

index a90e734..0924040 100644 (file)
@@ -159,6 +159,7 @@ METHOD(pb_tnc_msg_t, process, status_t,
        {
                DBG1(DBG_TNC,"%N message is shorter than header size of %u bytes",
                         pb_tnc_msg_type_names, PB_MSG_ERROR, ERROR_HEADER_SIZE);
+               *offset = 0;
                return FAILED;
        }