aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-11-19 15:03:45 +0100
committerMartin Willi <martin@revosec.ch>2012-11-30 15:48:55 +0100
commitfdce28c49c1808b967bb60176ebb78df7ef32c3c (patch)
treefde04903e8edd2d17d40f4a7a76d0cff4dec6048 /src
parent18bb1a15402cb9b32978613146245e9bf7cbfe6c (diff)
downloadstrongswan-fdce28c49c1808b967bb60176ebb78df7ef32c3c.tar.bz2
strongswan-fdce28c49c1808b967bb60176ebb78df7ef32c3c.tar.xz
Don't remove IETF standard errors while parsing IMC/IMV messages
Diffstat (limited to 'src')
-rw-r--r--src/libimcv/pa_tnc/pa_tnc_msg.c4
-rw-r--r--src/libimcv/pa_tnc/pa_tnc_msg.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/libimcv/pa_tnc/pa_tnc_msg.c b/src/libimcv/pa_tnc/pa_tnc_msg.c
index 3982382b4..63445f3a1 100644
--- a/src/libimcv/pa_tnc/pa_tnc_msg.c
+++ b/src/libimcv/pa_tnc/pa_tnc_msg.c
@@ -388,10 +388,6 @@ METHOD(pa_tnc_msg_t, process_ietf_std_errors, bool,
default:
break;
}
-
- /* remove and delete the processed IETF standard error attribute */
- this->attributes->remove_at(this->attributes, enumerator);
- attr->destroy(attr);
fatal_error = TRUE;
}
}
diff --git a/src/libimcv/pa_tnc/pa_tnc_msg.h b/src/libimcv/pa_tnc/pa_tnc_msg.h
index 80016fecd..332f2506f 100644
--- a/src/libimcv/pa_tnc/pa_tnc_msg.h
+++ b/src/libimcv/pa_tnc/pa_tnc_msg.h
@@ -65,7 +65,7 @@ struct pa_tnc_msg_t {
status_t (*process)(pa_tnc_msg_t *this);
/**
- * Process and remove all IETF standard error PA-TNC attributes
+ * Process all IETF standard error PA-TNC attributes
*
* @return TRUE if at least one error attribute processed
*/