view src/os/win32/ngx_dlopen.c @ 8236:e9bd4305e68b quic

QUIC: fixed send contexts cleanup. The ngx_quic_get_send_ctx() macro takes 'level' argument, not send context index.
author Vladimir Homutov <vl@nginx.com>
date Wed, 02 Dec 2020 10:55:49 +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;
}