Skip to content

Commit

Permalink
bugfix: fxied compilation error when --with-ipv6 is enabled. Thanks…
Browse files Browse the repository at this point in the history
… Sergey A. Osokin for the patch.
  • Loading branch information
cubicdaiya committed Jun 13, 2015
1 parent 2a88620 commit fa645d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ngx_inet_slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ ngx_parse_inet6_url(ngx_slab_pool_t *pool, ngx_url_t *u)
u->addrs[0].sockaddr = (struct sockaddr *) sin6;
u->addrs[0].socklen = sizeof(struct sockaddr_in6);

p = ngx_ngx_slab_alloc(pool, u->host.len + sizeof(":65535") - 1);
p = ngx_slab_alloc(pool, u->host.len + sizeof(":65535") - 1);
if (p == NULL) {
return NGX_ERROR;
}
Expand Down Expand Up @@ -521,7 +521,7 @@ ngx_inet_resolve_host_slab(ngx_slab_pool_t *pool, ngx_url_t *u)

len = NGX_INET_ADDRSTRLEN + sizeof(":65535") - 1;

p = ngx_ngx_slab_alloc(pool, len);
p = ngx_slab_alloc(pool, len);
if (p == NULL) {
goto failed;
}
Expand Down Expand Up @@ -554,7 +554,7 @@ ngx_inet_resolve_host_slab(ngx_slab_pool_t *pool, ngx_url_t *u)

len = NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1;

p = ngx_ngx_slab_alloc(pool, len);
p = ngx_slab_alloc(pool, len);
if (p == NULL) {
goto failed;
}
Expand Down

0 comments on commit fa645d7

Please sign in to comment.