failure.
Reported by Jim Meyering <jim@meyering.net>.
+2005-09-13 Derek Price <derek@ximbiot.com>
+
+ * canon-host.c (canon_host_r): Set *cherror on memory allocation
+ failure.
+ Reported by Jim Meyering <jim@meyering.net>.
+
2005-09-13 Jim Meyering <jim@meyering.net>
* canon-host.c: Filter through gnu indent and reword comments slightly.
2005-09-13 Jim Meyering <jim@meyering.net>
* canon-host.c: Filter through gnu indent and reword comments slightly.
if (!status)
{
retval = strdup (res->ai_canonname);
if (!status)
{
retval = strdup (res->ai_canonname);
+ if (!retval && cherror)
+ *cherror = EAI_MEMORY;
freeaddrinfo (res);
}
else if (cherror)
freeaddrinfo (res);
}
else if (cherror)