This reapplies ist.cocci across the whole src/ tree.
line[nmsg++] = ist(ctx->cfg->vars);
line[nmsg++] = ist("\"\n");
}
- if (auth->dns.ptr) {
+ if (isttest(auth->dns)) {
line[nmsg++] = ist("dns-01-record \"");
line[nmsg++] = ist2(dns_record->area, dns_record->data);
line[nmsg++] = ist("\"\n");
goto err;
}
- if (!htx_add_data_atonce(htx, ist2(HTTP_HELP, strlen(HTTP_HELP)))) {
+ if (!htx_add_data_atonce(htx, ist(HTTP_HELP))) {
TRACE_ERROR("unable to add payload to HTX message", HS_EV_HSTRM_SEND, hs);
goto err;
}
switch (type) {
case HTX_BLK_DATA:
v = htx_get_blk_value(src, blk);
- if (v.len > max)
- v.len = max;
+ v = isttrim(v, max);
v.len = htx_add_data(dst, v);
if (!v.len) {
dst_full = 1;
switch (type) {
case HTX_BLK_DATA:
v = htx_get_blk_value(src, blk);
- if (v.len > max)
- v.len = max;
+ v = isttrim(v, max);
v.len = htx_add_data(dst, v);
if (!v.len)
goto stop;
int c;
from = 28; // begin
- for (p = word.ptr; p < word.ptr + word.len; p++) {
+ for (p = word.ptr; p < istend(word); p++) {
c = tolower((unsigned char)*p);
switch(c) {
case 'a'...'z': to = c - 'a' + 1; break;