Mercurial > hg > nginx-quic
view src/os/win32/ngx_dlopen.c @ 7027:6d0e0d982ec0
Fixed segfault in try_files with nested location.
If memory allocation of a new r->uri.data storage failed, reset its length as
well. Request URI is used in ngx_http_finalize_request() for debug logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 07 Jun 2017 18:46:35 +0300 |
parents | 7142b04337d6 |
children |
line wrap: on
line source
/* * Copyright (C) Maxim Dounin * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> char * ngx_dlerror(void) { u_char *p; static u_char errstr[NGX_MAX_ERROR_STR]; p = ngx_strerror(ngx_errno, errstr, NGX_MAX_ERROR_STR); *p = '\0'; return (char *) errstr; }