diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2017-08-09 15:03:27 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2017-08-09 15:03:27 +0300 |
commit | b986b4314bb4f8fdcbcfe93c89a659d3d18691bc (patch) | |
tree | 40c34af2f9af465b15348f1869c7c2cfd0684b26 /src/stream/ngx_stream_geo_module.c | |
parent | 32c7bd5102571ec20e45f620d2916e612e3b2016 (diff) | |
download | nginx-b986b4314bb4f8fdcbcfe93c89a659d3d18691bc.tar.gz nginx-b986b4314bb4f8fdcbcfe93c89a659d3d18691bc.zip |
Fixed calls to ngx_open_file() in certain places.
Pass NGX_FILE_OPEN to ngx_open_file() to fix "The parameter is incorrect"
error on win32 when using the ssl_session_ticket_key directive or loading
a binary geo base. On UNIX, this change is a no-op.
Diffstat (limited to 'src/stream/ngx_stream_geo_module.c')
-rw-r--r-- | src/stream/ngx_stream_geo_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_geo_module.c b/src/stream/ngx_stream_geo_module.c index b34316bdd..632fa5a5a 100644 --- a/src/stream/ngx_stream_geo_module.c +++ b/src/stream/ngx_stream_geo_module.c @@ -1326,7 +1326,7 @@ ngx_stream_geo_include_binary_base(ngx_conf_t *cf, file.name = *name; file.log = cf->log; - file.fd = ngx_open_file(name->data, NGX_FILE_RDONLY, 0, 0); + file.fd = ngx_open_file(name->data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); if (file.fd == NGX_INVALID_FILE) { err = ngx_errno; |