upstream commit

Some packet error messages show the address of the peer,
 but might be generated after the socket to the peer has suffered a TCP reset.
 In these cases, getpeername() won't work so cache the address earlier.

spotted in the wild via deraadt@ and tedu@
This commit is contained in:
djm@openbsd.org 2015-02-11 01:20:38 +00:00 committed by Damien Miller
parent 4af1709cf7
commit d4c0295d1a