aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-01-10 05:08:48 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-01-11 01:17:40 +0100
commit21d96f44f7ac989b958b9bc7d289a9cd99723933 (patch)
tree6692c749c2f01590a4d2267fabd832063b7afea6 /src
parent8d0d0f0fe9fc9cb60a3dba680c21b9faedf7073a (diff)
downloadstrongswan-21d96f44f7ac989b958b9bc7d289a9cd99723933.tar.bz2
strongswan-21d96f44f7ac989b958b9bc7d289a9cd99723933.tar.xz
correct numbering of batches
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/tnccs_11/tnccs_11.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c
index 375f2cce2..a10aa2658 100644
--- a/src/libcharon/plugins/tnccs_11/tnccs_11.c
+++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c
@@ -179,7 +179,7 @@ static void handle_message(private_tnccs_11_t *this, tnccs_msg_t *msg)
err_msg = (tnccs_error_msg_t*)msg;
error_msg = err_msg->get_message(err_msg, &error_type);
- DBG1(DBG_TNC, "received TNCCS-Error '%N': %s",
+ DBG1(DBG_TNC, "received '%N' TNCCS-Error: %s",
tnccs_error_type_names, error_type, error_msg);
/* we assume that all errors are fatal */
@@ -241,8 +241,9 @@ METHOD(tls_t, process, status_t,
{
DBG1(DBG_TNC, "cancelling TNCCS batch");
this->batch->destroy(this->batch);
+ this->batch_id--;
}
- this->batch = tnccs_batch_create(this->is_server, this->batch_id);
+ this->batch = tnccs_batch_create(this->is_server, ++this->batch_id);
/* add error messages to outbound batch */
enumerator = batch->create_error_enumerator(batch);