summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/networking.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index e0716b8a4..ea54697df 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1498,7 +1498,11 @@ void clearClientConnectionState(client *c) {
if (c->flags & CLIENT_TRACKING) disableTracking(c);
selectDb(c,0);
+#ifdef LOG_REQ_RES
+ c->resp = server.client_default_resp;
+#else
c->resp = 2;
+#endif
clientSetDefaultAuth(c);
moduleNotifyUserChanged(c);