diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-06-25 14:57:49 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-06-25 14:57:49 +0200 |
commit | 9d997f31f1ee535e776d225b683d7c5bd4aa50f2 (patch) | |
tree | 848d2243ed7f3f52aa7374d52ddd87a6f6abe561 /src/libcharon | |
parent | cb14d7379fc844c706440a3bdcfb34ba52956c80 (diff) | |
download | strongswan-9d997f31f1ee535e776d225b683d7c5bd4aa50f2.tar.bz2 strongswan-9d997f31f1ee535e776d225b683d7c5bd4aa50f2.tar.xz |
oops, should have been a bitwise and
Diffstat (limited to 'src/libcharon')
-rw-r--r-- | src/libcharon/plugins/tnccs_11/tnccs_11.c | 4 |
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) |