diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-07-03 12:31:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-07-03 12:31:10 -0700 |
commit | 6f25ce94326137c8871691aea36c33cd45029aa9 (patch) | |
tree | 9fde335436f7acc85802c0f75c84efc934f4bef8 /ftw.h | |
parent | fe8c22a03ebc386a6867d591c780fb45a77d314a (diff) | |
download | txr-6f25ce94326137c8871691aea36c33cd45029aa9.tar.gz txr-6f25ce94326137c8871691aea36c33cd45029aa9.tar.bz2 txr-6f25ce94326137c8871691aea36c33cd45029aa9.zip |
Fix crash in getaddrinfo.
* socket.c (getaddrinfo_wrap): Initialize alist to null,
because getaddrinfo doesn't set it in the failure case!
Then, avoid calling freeaddrinfo for null pointer;
POSIX doesn't require that to work.
Diffstat (limited to 'ftw.h')
0 files changed, 0 insertions, 0 deletions