Skip to content

Commit 1d4bf8f

Browse files
committed
Compilation fixed
1 parent 62082a7 commit 1d4bf8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_tnt_eval_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ ngx_http_tnt_eval_parse_meta(ngx_http_request_t *r,
365365
conf = ngx_http_get_module_loc_conf(r, ngx_http_tnt_eval_module);
366366

367367
/* A conf var was'nt setted, so just call next filter */
368-
if (v->len <= 0) {
368+
if (v->data == NULL || v->len <= 0) {
369369
return NGX_DECLINED;
370370
}
371371

@@ -374,7 +374,7 @@ ngx_http_tnt_eval_parse_meta(ngx_http_request_t *r,
374374
if (buf == NULL) {
375375
return NGX_ERROR;
376376
}
377-
ngx_copy(buf, v->data, v->len);
377+
memcpy(buf, v->data, v->len);
378378
buf[v->len] = 0;
379379
/* }}} */
380380
y_root = yajl_tree_parse((const char *) buf,

0 commit comments

Comments
 (0)