From 679d7946852c411cf838b62678ba763586ec01ef Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 7 Feb 2022 07:48:43 +0200 Subject: [PATCH 43/43] Don't emit fcdb signal when fcdb disabled See osdn #43800 Signed-off-by: Marko Lindqvist --- server/connecthand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/connecthand.c b/server/connecthand.c index 49e55701a2..1c0acd93c1 100644 --- a/server/connecthand.c +++ b/server/connecthand.c @@ -182,7 +182,9 @@ void establish_new_connection(struct connection *pconn) /* Notify the console that you're here. */ log_normal(_("%s has connected from %s."), pconn->username, pconn->addr); - script_fcdb_call("conn_established", pconn); + if (srvarg.fcdb_enabled) { + script_fcdb_call("conn_established", pconn); + } conn_compression_freeze(pconn); send_rulesets(dest); -- 2.34.1