]> git.kaiwu.me - nginx.git/commit
Core: fixed possible use of an uninitialized variable.
authorVladimir Homutov <vl@nginx.com>
Thu, 11 Jul 2013 15:50:19 +0000 (19:50 +0400)
committerVladimir Homutov <vl@nginx.com>
Thu, 11 Jul 2013 15:50:19 +0000 (19:50 +0400)
commitd79c8abcaafa70f7bac00c4f8ddd897e45475919
tree14063c981a652d0e2faeb234e9100c2ad593ca3d
parentaf18946d769296d9efead825a0d1aa6a1a41fe74
Core: fixed possible use of an uninitialized variable.

The call to ngx_sock_ntop() in ngx_connection_local_sockaddr() might be
performed with the uninitialized "len" variable.  The fix is to initialize
variable to the size of corresponding socket address type.

The issue was introduced in commit 05ba5bce31e0.
src/core/ngx_connection.c