Skip to content

Commit 61c2753

Browse files
nginxkolbyjack
authored andcommitted
Changes with nginx 1.3.11 10 Jan 2013
*) Bugfix: a segmentation fault might occur if logging was used; the bug had appeared in 1.3.10. *) Bugfix: the "proxy_pass" directive did not work with IP addresses without port specified; the bug had appeared in 1.3.10. *) Bugfix: a segmentation fault occurred on start or during reconfiguration if the "keepalive" directive was specified more than once in a single upstream block. *) Bugfix: parameter "default" of the "geo" directive did not set default value for IPv6 addresses.
1 parent 1c2503c commit 61c2753

15 files changed

+184
-108
lines changed

CHANGES

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11

2+
Changes with nginx 1.3.11 10 Jan 2013
3+
4+
*) Bugfix: a segmentation fault might occur if logging was used; the bug
5+
had appeared in 1.3.10.
6+
7+
*) Bugfix: the "proxy_pass" directive did not work with IP addresses
8+
without port specified; the bug had appeared in 1.3.10.
9+
10+
*) Bugfix: a segmentation fault occurred on start or during
11+
reconfiguration if the "keepalive" directive was specified more than
12+
once in a single upstream block.
13+
14+
*) Bugfix: parameter "default" of the "geo" directive did not set
15+
default value for IPv6 addresses.
16+
17+
218
Changes with nginx 1.3.10 25 Dec 2012
319

420
*) Change: domain names specified in configuration file are now resolved

CHANGES.ru

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11

2+
Изменения в nginx 1.3.11 10.01.2013
3+
4+
*) Исправление: при записи в лог мог происходить segmentation fault;
5+
ошибка появилась в 1.3.10.
6+
7+
*) Исправление: директива proxy_pass не работала с IP-адресами без
8+
явного указания порта; ошибка появилась в 1.3.10.
9+
10+
*) Исправление: на старте или во время переконфигурации происходил
11+
segmentation fault, если директива keepalive была указана несколько
12+
раз в одном блоке upstream.
13+
14+
*) Исправление: параметр default директивы geo не определял значение по
15+
умолчанию для IPv6-адресов.
16+
17+
218
Изменения в nginx 1.3.10 25.12.2012
319

420
*) Изменение: для указанных в конфигурационном файле доменных имён

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2002-2012 Igor Sysoev
3-
* Copyright (C) 2011,2012 Nginx, Inc.
2+
* Copyright (C) 2002-2013 Igor Sysoev
3+
* Copyright (C) 2011-2013 Nginx, Inc.
44
* All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without

man/nginx.8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\"
2-
.\" Copyright (c) 2010 Sergey A. Osokin
3-
.\" Copyright (c) 2011,2012 Nginx, Inc.
2+
.\" Copyright (C) 2010 Sergey A. Osokin
3+
.\" Copyright (C) Nginx, Inc.
44
.\" All rights reserved.
55
.\"
66
.\" Redistribution and use in source and binary forms, with or without

src/core/nginx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#define _NGINX_H_INCLUDED_
1010

1111

12-
#define nginx_version 1003010
13-
#define NGINX_VERSION "1.3.10"
12+
#define nginx_version 1003011
13+
#define NGINX_VERSION "1.3.11"
1414
#define NGINX_VER "nginx/" NGINX_VERSION
1515

1616
#define NGINX_VAR "NGINX"

src/core/ngx_conf_file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
946946
}
947947

948948
file->flush = NULL;
949+
file->data = NULL;
949950

950951
return file;
951952
}

src/core/ngx_inet.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,8 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u)
707707
}
708708

709709
u->no_port = 1;
710-
711-
if (!u->no_resolve) {
712-
u->port = u->default_port;
713-
sin->sin_port = htons(u->default_port);
714-
}
710+
u->port = u->default_port;
711+
sin->sin_port = htons(u->default_port);
715712
}
716713

717714
len = last - host;
@@ -868,11 +865,8 @@ ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u)
868865

869866
} else {
870867
u->no_port = 1;
871-
872-
if (!u->no_resolve) {
873-
u->port = u->default_port;
874-
sin6->sin6_port = htons(u->default_port);
875-
}
868+
u->port = u->default_port;
869+
sin6->sin6_port = htons(u->default_port);
876870
}
877871
}
878872

src/event/ngx_event.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,10 @@ ngx_events_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
892892
ngx_conf_t pcf;
893893
ngx_event_module_t *m;
894894

895+
if (*(void **) conf) {
896+
return "is duplicate";
897+
}
898+
895899
/* count the number of the event modules and set up their indices */
896900

897901
ngx_event_max_module = 0;

src/event/ngx_event_openssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,10 @@ ngx_ssl_ecdh_curve(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *name)
643643
return NGX_ERROR;
644644
}
645645

646-
SSL_CTX_set_tmp_ecdh(ssl->ctx, ecdh);
647-
648646
SSL_CTX_set_options(ssl->ctx, SSL_OP_SINGLE_ECDH_USE);
649647

648+
SSL_CTX_set_tmp_ecdh(ssl->ctx, ecdh);
649+
650650
EC_KEY_free(ecdh);
651651
#endif
652652
#endif

0 commit comments

Comments
 (0)