aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/tnccs_11/tnccs_11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c
index 0aed55cd4..53ac99807 100644
--- a/src/libcharon/plugins/tnccs_11/tnccs_11.c
+++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c
@@ -111,7 +111,7 @@ METHOD(tnccs_t, send_msg, TNC_Result,
return TNC_RESULT_ILLEGAL_OPERATION;
}
vendor_id = msg_type >> 8;
- subtype = msg_type && 0xff;
+ subtype = msg_type & 0xff;
pa_subtype_names = get_pa_subtype_names(vendor_id);
if (pa_subtype_names)
{
@@ -155,7 +155,7 @@ static void handle_message(private_tnccs_11_t *this, tnccs_msg_t *msg)
msg_type = imc_imv_msg->get_msg_type(imc_imv_msg);
msg_body = imc_imv_msg->get_msg_body(imc_imv_msg);
vendor_id = msg_type >> 8;
- subtype = msg_type && 0xff;
+ subtype = msg_type & 0xff;
pa_subtype_names = get_pa_subtype_names(vendor_id);
if (pa_subtype_names)