mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 23:57:14 +03:00
don't try to probe a connection that's finished (should fix #284)
This commit is contained in:
parent
a3d9df87cb
commit
1e33455fe7
3
probe.c
3
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user