Mercurial > hg > nginx
view src/core/ngx_parse_time.h @ 6731:3f94a0fc05cf
Core: sockaddr lengths now respected by ngx_cmp_sockaddr().
Linux can return AF_UNIX sockaddrs with partially filled sun_path,
resulting in spurious comparison failures and failed binary upgrades.
Added proper checking of the lengths provided.
Reported by Jan Seda,
http://mailman.nginx.org/pipermail/nginx-devel/2016-September/008832.html.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Oct 2016 16:15:41 +0300 |
parents | 8b6fa4842133 |
children |
line wrap: on
line source
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #ifndef _NGX_PARSE_TIME_H_INCLUDED_ #define _NGX_PARSE_TIME_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> time_t ngx_parse_http_time(u_char *value, size_t len); /* compatibility */ #define ngx_http_parse_time(value, len) ngx_parse_http_time(value, len) #endif /* _NGX_PARSE_TIME_H_INCLUDED_ */