Added parentesis for logical conditions of IF statement to get rid of the warning
authorSansar Choinyambuu <schoinya@hsr.ch>
Mon, 10 Oct 2011 09:52:36 +0000 (11:52 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 13:39:50 +0000 (14:39 +0100)
src/libimcv/plugins/imc_attestation/imc_attestation_process.c

index aa64ee8..fcfb720 100644 (file)
@@ -110,7 +110,7 @@ bool imc_attestation_process(pa_tnc_attr_t *attr, linked_list_t *attr_list,
                        attr_cast = (tcg_pts_attr_dh_nonce_params_req_t*)attr;
                        min_nonce_len = attr_cast->get_min_nonce_len(attr_cast);
                        if (nonce_len < PTS_MIN_NONCE_LEN ||
                        attr_cast = (tcg_pts_attr_dh_nonce_params_req_t*)attr;
                        min_nonce_len = attr_cast->get_min_nonce_len(attr_cast);
                        if (nonce_len < PTS_MIN_NONCE_LEN ||
-                               min_nonce_len > 0 && nonce_len < min_nonce_len)
+                               (min_nonce_len > 0 && nonce_len < min_nonce_len))
                        {
                                attr = pts_dh_nonce_error_create(nonce_len, PTS_MAX_NONCE_LEN);
                                attr_list->insert_last(attr_list, attr);
                        {
                                attr = pts_dh_nonce_error_create(nonce_len, PTS_MAX_NONCE_LEN);
                                attr_list->insert_last(attr_list, attr);