X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-ctl%2Fustctl.c;h=9789413f2a4ce8c1b3737e4a43157a2a1aa68b8b;hb=1f9ea73ccce16c5bc7e4eeb27db21b7bf62c9823;hp=b0b5b6cc94f2997c61def90e6e30b804295abaaf;hpb=400033107ea279bb8a1530ddec13e1453dc4c4a3;p=lttng-ust.git diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index b0b5b6cc..9789413f 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -520,6 +520,10 @@ int ustctl_tracepoint_field_list_get(int sock, int tp_field_list_handle, ret = ustcomm_send_app_cmd(sock, &lum, &lur); if (ret) return ret; + if (lur.ret_code != USTCOMM_OK) { + DBG("Return code: %s", ustcomm_get_readable_code(lur.ret_code)); + return -EINVAL; + } len = ustcomm_recv_unix_sock(sock, iter, sizeof(*iter)); if (len != sizeof(*iter)) { return -EINVAL;