diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-11-07 23:41:06 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-11-07 23:41:06 +0100 |
commit | 0620c8e589c713fa0f0d0f66a4c4d203e8f3f87f (patch) | |
tree | 30c4aaf1b49036102ebd6e3805af0bac5695c213 /louloulibs/network/dns_handler.hpp | |
parent | 5027b21fd1fe0dec6a82a2b0f428f30f5cc98a42 (diff) | |
download | biboumi-0620c8e589c713fa0f0d0f66a4c4d203e8f3f87f.tar.gz biboumi-0620c8e589c713fa0f0d0f66a4c4d203e8f3f87f.tar.bz2 biboumi-0620c8e589c713fa0f0d0f66a4c4d203e8f3f87f.tar.xz biboumi-0620c8e589c713fa0f0d0f66a4c4d203e8f3f87f.zip |
Avoid leaking socket filedescriptors
When trying the various results of getaddrinfo, we forgot to close the
socket when one fails, before trying the next one.
Also use the destructor to make sure we do not have some other unrelated
leak.
Diffstat (limited to 'louloulibs/network/dns_handler.hpp')
0 files changed, 0 insertions, 0 deletions