Instead of relying on the implementation detail that
`stream_generate_unique_id()` will store the unique ID in `strm->unique_id` we
should use the returned value, especially since that one is already checked in
the `isttest()`.
Reviewed-by: Volker Dusch <github@wallbash.com>
if (!isttest(unique_id))
return 0;
- smp->data.u.str.area = smp->strm->unique_id.ptr;
- smp->data.u.str.data = smp->strm->unique_id.len;
+ smp->data.u.str.area = istptr(unique_id);
+ smp->data.u.str.data = istlen(unique_id);
smp->data.type = SMP_T_STR;
smp->flags = SMP_F_CONST;
return 1;