diff options
Diffstat (limited to 'lib/canon-host.c')
-rw-r--r-- | lib/canon-host.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/canon-host.c b/lib/canon-host.c index dcbec53385..e2bd1a773b 100644 --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -72,6 +72,8 @@ canon_host_r (char const *host, int *cherror) if (!status) { retval = strdup (res->ai_canonname); + if (!retval && cherror) + *cherror = EAI_MEMORY; freeaddrinfo (res); } else if (cherror) |