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:
Yves Rutschle 2018-08-14 22:52:52 +02:00
parent 677e385fec
commit 8ad32816a6

View File

@ -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));