From 8809257531cc21aab3a25bb487e9424175cdfddd Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 19 Dec 2002 07:08:55 +0000 Subject: nginx-0.0.1-2002-12-19-10:08:55 import --- src/http/ngx_http_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_event.c') 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)), -- cgit