Skip to content

Commit

Permalink
ldmsd: plugn_sets_handler returns a corrupted message if no plugin sets
Browse files Browse the repository at this point in the history
  • Loading branch information
nichamon authored and narategithub committed Nov 14, 2019
1 parent eae9903 commit 8b96ece
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ldms/src/ldmsd/ldmsd_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -4425,9 +4425,11 @@ static int plugn_sets_handler(ldmsd_req_ctxt_t reqc)
rc = ldmsd_append_reply(reqc, "[", 1, 0);
if (rc)
goto out;
rc = ldmsd_append_reply(reqc, reqc->line_buf, reqc->line_off, 0);
if (rc)
goto out;
if (reqc->line_off) {
rc = ldmsd_append_reply(reqc, reqc->line_buf, reqc->line_off, 0);
if (rc)
goto out;
}
rc = ldmsd_append_reply(reqc, "]", 1, 0);
if (rc)
goto out;
Expand Down

0 comments on commit 8b96ece

Please sign in to comment.