do not call recommendations if recs does not exist
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 14 May 2011 14:36:05 +0000 (16:36 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 14 May 2011 14:36:05 +0000 (16:36 +0200)
src/libcharon/plugins/tnccs_11/tnccs_11.c

index cd8cd3a..86f1c26 100644 (file)
@@ -396,7 +396,7 @@ METHOD(tls_t, build, status_t,
        /* Do not allow any asynchronous IMCs or IMVs to add additional messages */
        this->mutex->lock(this->mutex);
 
-       if (this->is_server && !this->delete_state &&
+       if (this->recs && !this->delete_state &&
           (!this->batch || this->fatal_error))
        {
                check_and_build_recommendation(this);