aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-05-14 16:36:05 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-05-14 16:36:05 +0200
commit706ae005c6e6921458a9ebd21a8ca4011929eb8a (patch)
tree099adda8f8ef4d2ca749a63dc1e6ffb12c9c5ba5
parentcc546c3ce6a12165f4e73bd19d2cf4c0c192547c (diff)
downloadstrongswan-706ae005c6e6921458a9ebd21a8ca4011929eb8a.tar.bz2
strongswan-706ae005c6e6921458a9ebd21a8ca4011929eb8a.tar.xz
do not call recommendations if recs does not exist
-rw-r--r--src/libcharon/plugins/tnccs_11/tnccs_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c
index cd8cd3a43..86f1c269f 100644
--- a/src/libcharon/plugins/tnccs_11/tnccs_11.c
+++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c
@@ -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);