From 2d7107c91a0a2cbcef9b8662df51ca63b734b5c8 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Tue, 23 Mar 2021 22:14:11 +0100 Subject: [PATCH] Fix likely cause of segfault in keepalive handling --- threaddata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/threaddata.cpp b/threaddata.cpp index 3e21263..43bdb17 100644 --- a/threaddata.cpp +++ b/threaddata.cpp @@ -165,7 +165,8 @@ void ThreadData::doKeepAliveCheck() } else { - client->resetBuffersIfEligible(); + if (client) + client->resetBuffersIfEligible(); it++; } } -- libgit2 0.21.4