From 9d997f31f1ee535e776d225b683d7c5bd4aa50f2 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sat, 25 Jun 2011 14:57:49 +0200 Subject: [PATCH] oops, should have been a bitwise and --- src/libcharon/plugins/tnccs_11/tnccs_11.c | 4 ++-- 1 file 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)