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 <alex.v.jaramillo@intel.com>
This commit is contained in:
Alex Jaramillo
2018-09-06 13:33:39 -07:00
committed by ajch
parent f81e4c7fba
commit 32c9dfcd21
+1 -1
View File
@@ -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;
}