Skip to content

Commit 1626aaa

Browse files
lonerragentzh
authored andcommitted
bugfix: *_by_lua_block might break nginx config dump (-T switch).
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
1 parent c97473b commit 1626aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_directive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ ngx_http_lua_conf_read_lua_token(ngx_conf_t *cf,
15421542

15431543
#if nginx_version >= 1009002
15441544
if (dump) {
1545-
dump->last = ngx_cpymem(dump->last, b->pos, size);
1545+
dump->last = ngx_cpymem(dump->last, b->start + len, size);
15461546
}
15471547
#endif
15481548
}

0 commit comments

Comments
 (0)