mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
don't try to probe a connection that's finished (should fix #284)
This commit is contained in:
1 parent
a3d9df87cb
commit
1e33455fe7
1 file changed
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user