Fix parsing of empty colon-separated fields, reported by Siarhei Siniak.

This commit is contained in:
nicm 2018-12-17 21:52:59 +00:00
parent 67254ed8df
commit 4e3d661284

View File

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