]> git.ipfire.org Git - thirdparty/squid.git/commit
Fixed Ip::Address copying (#126)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sat, 20 Jan 2018 04:54:16 +0000 (17:54 +1300)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 2 Feb 2018 04:45:24 +0000 (17:45 +1300)
commit7d3c70f9ca5e5805c02eea7b2d879371ce41261d
tree6747eb49e1a50986a5c8a8caa2a60e30117f29d4
parent787b41c3b0ef9b7330032a1947c5f93bd050f32a
Fixed Ip::Address copying (#126)

Explicit copy construction was slow and unnecessary.
Explicit copy assignment mishandled self copying and was unnecessary.
The remaining memcpy() calls mishandled self copying.

There are no known cases of Ip::Address self copying.
src/ip/Address.cc
src/ip/Address.h