Skip to content

Commit

Permalink
decode_statsd: Process further tag candidates if errornous part is found
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Aug 7, 2024
1 parent b8a234b commit 9297d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmt_decode_statsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int decode_labels(struct cmt *cmt,
while (label_kv != NULL) {
colon = strchr(label_kv, ':');
if (colon == NULL) {
break;
goto retry;
}
label_k = cfl_sds_create_len(label_kv, colon - label_kv);
if (label_k == NULL) {
Expand Down Expand Up @@ -184,6 +184,7 @@ static int decode_labels(struct cmt *cmt,

cfl_sds_destroy(label_k);

retry:
label_kv = strtok_r(NULL, ",", &store);
}
}
Expand Down

0 comments on commit 9297d26

Please sign in to comment.