From 706ae005c6e6921458a9ebd21a8ca4011929eb8a Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sat, 14 May 2011 16:36:05 +0200 Subject: [PATCH] do not call recommendations if recs does not exist --- src/libcharon/plugins/tnccs_11/tnccs_11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);