[Swan-commit] Changes to ref refs/heads/main
D. Hugh Redelmeier
hugh at vault.libreswan.fi
Tue May 4 04:14:50 UTC 2021
New commits:
commit 202d1b7c6f3cfd63bcf066e278c30163f1b8752a
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date: Tue May 4 00:11:22 2021 -0400
libswan/ttoaddress.c: attempt to fix a crash in ttoaddress_dns
Cagney observed a crash in the version of ttoaddress_dns that uses getaddrinfo.
It looks as if freeaddrinfo is trying to free something that wasn't malloced.
The best explanation is that getaddrinfo does NOT set *res if some failure
is recognized (this is not documented).
This commit initialized res to NULL. That should work if freeaddrinfo
does or does not set *res on failure.
More information about the Swan-commit
mailing list