]> git.kaiwu.me - nginx.git/commit
Fixed segmentation fault in ngx_resolver_create_name_query().
authorRuslan Ermilov <ru@nginx.com>
Thu, 26 Apr 2012 12:58:42 +0000 (12:58 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 26 Apr 2012 12:58:42 +0000 (12:58 +0000)
commit487ba70126ddcde8f889e20617b927c9d716c792
treef65b1792ca8fddac32765dbd5ac93006494aaa64
parent6ad02389c3947f8af2ce295d83e4c27427c9b644
Fixed segmentation fault in ngx_resolver_create_name_query().

If name passed for resolution was { 0, NULL } (e.g. as a result
of name server returning CNAME pointing to ".") pointer wrapped
to (void *) -1 resulting in segmentation fault on an attempt to
dereference it.

Reported by Lanshun Zhou.
src/core/ngx_resolver.c