X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-ctl%2Fustctl.c;h=ea5ab9dc4ed3ce29cd3dad50b1cc16c4bc32167a;hb=6a359b8a40062865e081cd959ecbef934c761861;hp=c2b761a1b7cccba3fea0fd0dfad2cc074036b45e;hpb=21a934df4c683e73e0a66a9afca33573fcf9d789;p=lttng-ust.git diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index c2b761a1..ea5ab9dc 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -17,14 +17,16 @@ */ #define _GNU_SOURCE +#include +#include #include +#include +#include + #include #include #include #include -#include -#include - #include #include #include @@ -1852,7 +1854,8 @@ int ustctl_recv_reg_msg(int sock, *uint64_t_alignment = reg_msg.uint64_t_alignment; *long_alignment = reg_msg.long_alignment; memcpy(name, reg_msg.name, LTTNG_UST_ABI_PROCNAME_LEN); - if (reg_msg.major != LTTNG_UST_ABI_MAJOR_VERSION) { + if (reg_msg.major < LTTNG_UST_ABI_MAJOR_VERSION_OLDEST_COMPATIBLE || + reg_msg.major > LTTNG_UST_ABI_MAJOR_VERSION) { return -LTTNG_UST_ERR_UNSUP_MAJOR; }