From: Andreas Steffen Date: Wed, 10 Nov 2010 14:44:09 +0000 (+0100) Subject: append any previously collection messages to batch X-Git-Tag: 4.5.1~538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b55310b3a86233ccdabe5f62ed9b00348613c78a;p=thirdparty%2Fstrongswan.git append any previously collection messages to batch --- diff --git a/src/libcharon/plugins/tnccs_20/tnccs_20.c b/src/libcharon/plugins/tnccs_20/tnccs_20.c index 04bf2a2d02..158b5289b7 100644 --- a/src/libcharon/plugins/tnccs_20/tnccs_20.c +++ b/src/libcharon/plugins/tnccs_20/tnccs_20.c @@ -117,7 +117,7 @@ METHOD(tls_t, build, status_t, char *msg = this->is_server ? "tncs->tncc 2.0|" : "tncc->tncs 2.0|"; size_t len; - this->batch = chunk_clone(chunk_create(msg, strlen(msg))); + this->batch = chunk_cat("cm", chunk_create(msg, strlen(msg)), this->batch); if (!this->is_server && !this->connection_id) {