X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclient.c;fp=src%2Fbin%2Flttng-sessiond%2Fclient.c;h=fc26554c9583271474cd4b92fea99dc8f3573880;hb=283c6fa6cc573166ec4e41b70a9db57f8356f4aa;hp=c798234ae90cc0a48eb68fbb9c236122c514caf2;hpb=f54fce950c8665a7a26ea6ba726071de2392f4d4;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/client.c b/src/bin/lttng-sessiond/client.c index c798234ae..fc26554c9 100644 --- a/src/bin/lttng-sessiond/client.c +++ b/src/bin/lttng-sessiond/client.c @@ -1977,12 +1977,12 @@ skip_domain: * ret will be set to LTTNG_OK at the end of * this function. */ - } else if (pending_ret < 0) { + } else if (pending_ret <= LTTNG_OK || pending_ret >= LTTNG_ERR_NR) { ret = LTTNG_ERR_UNK; - goto setup_error; + goto error; } else { ret = pending_ret; - goto setup_error; + goto error; } pending_ret_byte = (uint8_t) pending_ret;