From 4e3d6612845e190a490f40cce79c858dadaee74b Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 17 Dec 2018 21:52:59 +0000 Subject: [PATCH] Fix parsing of empty colon-separated fields, reported by Siarhei Siniak. --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index d9f419fe..12527264 100644 --- a/input.c +++ b/input.c @@ -1862,7 +1862,8 @@ input_csi_dispatch_sgr_colon(struct input_ctx *ictx, u_int i) free(copy); return; } - } + } else + n++; log_debug("%s: %u = %d", __func__, n - 1, p[n - 1]); } free(copy);