Skip to content

ngx_client模块地址拷贝错误导致踩内存 #94

@xbc112233

Description

@xbc112233

ngx_client_connect_server函数里面,
s->peer.sockaddr = ngx_pcalloc(s->pool, sizeof(socklen)); 这个是笔误吧?
应该是
s->peer.sockaddr = ngx_pcalloc(s->pool, socklen);
不然后面memcpy就覆盖内存了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions