mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
last_p might be used uninitialised if last probe has no probe set (which I don't think might happen, but anyhow...)
This commit is contained in:
parent
677e385fec
commit
8ad32816a6
2
probe.c
2
probe.c
@ -375,7 +375,7 @@ static int regex_probe(const char *p, int len, struct proto *proto)
|
||||
int probe_client_protocol(struct connection *cnx)
|
||||
{
|
||||
char buffer[BUFSIZ];
|
||||
struct proto *p, *last_p;
|
||||
struct proto *p, *last_p = cnx->proto;
|
||||
int n, res, again = 0;
|
||||
|
||||
n = read(cnx->q[0].fd, buffer, sizeof(buffer));
|
||||
|
Loading…
x
Reference in New Issue
Block a user