hlua_lua2smp(L, 3, &smp);
/* Store the sample in a variable. */
+ smp_set_owner(&smp, htxn->p, htxn->s->sess, htxn->s, htxn->dir & SMP_OPT_DIR);
vars_set_by_name(name, len, htxn->s, &smp);
return 0;
}
htxn = MAY_LJMP(hlua_checktxn(L, 1));
name = MAY_LJMP(luaL_checklstring(L, 2, &len));
+ smp_set_owner(&smp, htxn->p, htxn->s->sess, htxn->s, htxn->dir & SMP_OPT_DIR);
if (!vars_get_by_name(name, len, htxn->s, &smp)) {
lua_pushnil(L);
return 1;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
smp->data.u.sint &= tmp.data.u.sint;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
smp->data.u.sint |= tmp.data.u.sint;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
smp->data.u.sint ^= tmp.data.u.sint;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
smp->data.u.sint = arith_add(smp->data.u.sint, tmp.data.u.sint);
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
struct sample tmp;
long long int c;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;
{
struct sample tmp;
+ smp_set_owner(&tmp, smp->px, smp->sess, smp->strm, smp->opt);
if (!sample_conv_var2smp(arg_p, smp->strm, &tmp))
return 0;