diff options
Diffstat (limited to 'src/http/ngx_http_event.c')
| -rw-r--r-- | src/http/ngx_http_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index 60b3ca416..82e4a5315 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -107,7 +107,7 @@ int ngx_http_init_connection(ngx_connection_t *c) c->addr_text.len = ngx_inet_ntop(c->family, (char *)c->sockaddr + c->addr, c->addr_text.data, c->addr_text.len); - if (c->addr_text.len = 0) + if (c->addr_text.len == 0) return NGX_ERROR; ngx_test_null(ctx, ngx_pcalloc(c->pool, sizeof(ngx_http_log_ctx_t)), |
