From 8ad32816a647673c7ae62d593285386add4ed5b5 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Tue, 14 Aug 2018 22:52:52 +0200 Subject: [PATCH] last_p might be used uninitialised if last probe has no probe set (which I don't think might happen, but anyhow...) --- probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe.c b/probe.c index b9f7e21..2fac295 100644 --- a/probe.c +++ b/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));