set PB_MSG_PA message type
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 23 Nov 2010 15:32:09 +0000 (16:32 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 23 Nov 2010 15:32:09 +0000 (16:32 +0100)
src/libcharon/plugins/tnccs_20/messages/pb_pa_message.c

index 908a64e..51d54e8 100644 (file)
@@ -1,5 +1,7 @@
 /*
+ * Copyright (C) 2010 Sansar Choinyanbuu
  * Copyright (C) 2010 Andreas Steffen
+ *
  * HSR Hochschule fuer Technik Rapperswil
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -227,6 +229,7 @@ pb_tnc_message_t *pb_pa_message_create_from_data(chunk_t data)
                        .get_exclusive_flag = _get_exclusive_flag,
                        .set_exclusive_flag = _set_exclusive_flag,
                },
+               .type = PB_MSG_PA,
                .encoding = chunk_clone(data),
        );
 
@@ -259,6 +262,7 @@ pb_tnc_message_t *pb_pa_message_create(u_int32_t vendor_id, u_int32_t subtype,
                        .get_exclusive_flag = _get_exclusive_flag,
                        .set_exclusive_flag = _set_exclusive_flag,
                },
+               .type = PB_MSG_PA,
                .vendor_id = vendor_id,
                .subtype = subtype,
                .collector_id = collector_id,