⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
nginx
/
src
/
ngx_devel_kit
/
src
/
View File Name :
ndk_buf.c
ngx_int_t ndk_copy_chain_to_str (ngx_pool_t *pool, ngx_chain_t *in, ngx_str_t *str) { ngx_chain_t *cl; size_t len; u_char *p; ngx_buf_t *b; len = 0; for (cl = in; cl; cl = cl->next) len += ngx_buf_size (cl->buf); ndk_palloc_re (p, pool, len + 1); str->data = p; str->len = len; for (cl = in; cl; cl = cl->next) { b = cl->buf; if (ngx_buf_in_memory (b)) { p = ngx_cpymem (p, b->pos, b->last - b->pos); } } *p = '\0'; return NGX_OK; } char * ndk_copy_chain_to_charp (ngx_pool_t *pool, ngx_chain_t *in) { ngx_str_t str; if (ndk_copy_chain_to_str (pool, in, &str) != NGX_OK) return NULL; return (char *) str.data; }