append any previously collection messages to batch
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 14:44:09 +0000 (15:44 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 14:44:09 +0000 (15:44 +0100)
src/libcharon/plugins/tnccs_20/tnccs_20.c

index 04bf2a2..158b528 100644 (file)
@@ -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)
        {