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

pull/1589/head
nicm 2018-12-17 21:52:59 +00:00
parent 67254ed8df
commit 4e3d661284
1 changed files with 2 additions and 1 deletions

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