comparison src/core/ngx_inet.c @ 711:324967192b8b

fix segfault in "proxy_pass http://unix:...", the bug appeared in nginx-0.3.47
author Igor Sysoev <igor@sysoev.ru>
date Sun, 24 Sep 2006 07:35:56 +0000
parents 6d5c1535bb9d
children 2452d89efea9
comparison
equal deleted inserted replaced
710:6875ee9f93c7 711:324967192b8b
237 if (ngx_strncasecmp(p, "unix:", 5) == 0) { 237 if (ngx_strncasecmp(p, "unix:", 5) == 0) {
238 238
239 #if (NGX_HAVE_UNIX_DOMAIN) 239 #if (NGX_HAVE_UNIX_DOMAIN)
240 240
241 u->type = NGX_PARSE_URL_UNIX; 241 u->type = NGX_PARSE_URL_UNIX;
242 u->uri = u->url;
242 243
243 p += 5; 244 p += 5;
244 len -= 5; 245 len -= 5;
245 246
246 if (u->uri_part) { 247 if (u->uri_part) {