diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-12-14 08:22:40 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-12-14 08:22:40 +0000 |
commit | 06c40f2d537769c94446c56fe6df7b5cf9e83de9 (patch) | |
tree | 271a2d557472f7edc11dd53a5a87c9e50cf7f972 /usr.sbin/ikectl | |
parent | 77c00ede9f8b93045be0196a52f3340b620afa00 (diff) |
Remove a resource leak by closing the socket in all error cases.
The patch was already committed upstream.
OK tb@ and sthen@. jca@ has a valid point that the error would be fatal and
most likely the socket would not leak, nevertheless create_tcp_accept_sock()
close the socket everytime so for clarity apply the same principal here in
create_local_accept_sock()
Diffstat (limited to 'usr.sbin/ikectl')
0 files changed, 0 insertions, 0 deletions