switch (lttng_condition_get_type(condition)) {
case LTTNG_CONDITION_TYPE_SESSION_ROTATION_ONGOING:
if (!session_info->rotation.ongoing) {
+ ret = 0;
goto end_session_put;
}
break;
default:
ret = 0;
- goto end;
+ goto end_session_put;
}
*session_uid = session_info->uid;