diff --git a/src/report/report_client.cpp b/src/report/report_client.cpp index dc4f7e91a9c8be4f135e6f474c0324e8a7b32298..f88e5da1dc86e6e7a56c594447fa0d6835edae16 100644 --- a/src/report/report_client.cpp +++ b/src/report/report_client.cpp @@ -192,7 +192,14 @@ int main(int argc, char **argv) { if (strLine.empty()) { continue; } - json j = json::parse(strLine); + + json j; + try { + j = json::parse(strLine); + }catch (...) { + remove(fileName.c_str()); + continue; + } UpstreamSegment request;