view src/os/win32/ngx_dlopen.c @ 8090:351d62300832 quic

HTTP/3: rearranged length check when parsing header. The new code looks simpler and is similar to other checks.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 16 Sep 2020 20:21:03 +0100
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;
}