commit | d4c0295d1afc342057ba358237acad6be8af480b | [log] [download] |
---|---|---|
author | djm@openbsd.org <djm@openbsd.org> | Wed Feb 11 01:20:38 2015 +0000 |
committer | Damien Miller <djm@mindrot.org> | Wed Feb 11 12:26:31 2015 +1100 |
tree | a4e5a1fa8079f713f6c29aedc7e3d9f2cc66faa4 | |
parent | 4af1709cf774475ce5d1bc3ddcc165f6c222897d [diff] |
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@