]> 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)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2018 04:54:16 +0000 (17:54 +1300)
commit9f15dc43e7f1cae214aee7dd379a02692fd6ee63
treee8723a653bfc85c8221448568278b7330c75bb30
parentf1dfef292e13cf3ad800ad810fd3c5dc647ce441
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