From 1e33455fe76078d97ea4ce1c8b856df2dea64c71 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Wed, 2 Dec 2020 22:49:19 +0100 Subject: [PATCH] don't try to probe a connection that's finished (should fix #284) --- probe.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/probe.c b/probe.c index 9fcef1f..8bbcdc0 100644 --- a/probe.c +++ b/probe.c @@ -395,9 +395,6 @@ int probe_client_protocol(struct connection *cnx) &cnx->proto); } - /* If we read nothing, try again later */ - if (n == 0) return PROBE_AGAIN; - /* read() returned an error, so just connect to the last protocol to die */ cnx->proto = &cfg.protocols[cfg.protocols_len-1]; return PROBE_MATCH;