From a08a89ab7fcc75af913d12d5a07abe8e192ca504 Mon Sep 17 00:00:00 2001 From: Alex Jaramillo Date: Thu, 6 Sep 2018 18:19:37 +0000 Subject: [PATCH] Fix send record check bug This change fixes a bug where the telem-record-gen probe returns 1 though the execution of the probe was successful. Signed-off-by: Alex Jaramillo --- src/probes/telem_record_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probes/telem_record_gen.c b/src/probes/telem_record_gen.c index 95a47d7..726e07d 100644 --- a/src/probes/telem_record_gen.c +++ b/src/probes/telem_record_gen.c @@ -409,7 +409,7 @@ int main(int argc, char **argv) print_record(payload); } - if (opt_nopost == false && !send_record(payload)) { + if (opt_nopost == false && send_record(payload) != 0) { goto fail; }