if (!chk) {
smp->flags &= ~SMP_F_CONST;
chk = get_trash_chunk_sz(htx->data);
- chunk_istcat(chk, body);
+ if (!chunk_istcat(chk, body))
+ return 0;
}
- chunk_istcat(chk, htx_get_blk_value(htx, blk));
+ if (!chunk_istcat(chk, htx_get_blk_value(htx, blk)))
+ return 0;
body = ist2(b_orig(chk), b_data(chk));
}
else {
continue;
n = htx_get_blk_name(htx, blk);
- if (temp->data)
- temp->area[temp->data++] = del;
- chunk_istcat(temp, n);
+ if (temp->data) {
+ if (!chunk_memcat(temp, &del, 1))
+ return 0;
+ }
+ if (!chunk_istcat(temp, n))
+ return 0;
}
smp->data.type = SMP_T_STR;
/* OK we have the header value in ctx.value */
temp = get_trash_chunk();
- chunk_istcat(temp, ctx.value);
+ if (!chunk_istcat(temp, ctx.value))
+ return 0;
/* now retrieve the path */
sl = http_get_stline(htx);
;
}
- if (len && *(path.ptr) == '/')
- chunk_memcat(temp, path.ptr, len);
+ if (len && *(path.ptr) == '/') {
+ if (!chunk_memcat(temp, path.ptr, len))
+ return 0;
+ }
}
smp->data.type = SMP_T_STR;
/* More than one DATA block we must use a trash */
if (!chk) {
chk = get_trash_chunk_sz(htx->data);
- chunk_istcat(chk, body);
+ if (!chunk_istcat(chk, body))
+ break;
}
- chunk_istcat(chk, htx_get_blk_value(htx, blk));
+ if (!chunk_istcat(chk, htx_get_blk_value(htx, blk)))
+ break;
body = ist2(b_orig(chk), b_data(chk));
}
else