+2004-08-23 Ken Raeburn <raeburn@mit.edu>
+
+ * fake-addrinfo.h (fai_add_hosts_by_name): Handle case where
+ returned ai_canonname is null.
+
2004-08-14 Ken Raeburn <raeburn@mit.edu>
* k5-thread.h (k5_os_nothread_mutex_assert_locked,
break;
}
}
- ce->canonname = strdup(ai->ai_canonname);
+ ce->canonname = ai->ai_canonname ? strdup(ai->ai_canonname) : 0;
system_freeaddrinfo(ai);
plant_face(name, ce);
}
}
}
if (*result && (flags & AI_CANONNAME))
- (*result)->ai_canonname = strdup(ce->canonname);
+ (*result)->ai_canonname = (ce->canonname
+ ? strdup(ce->canonname)
+ : NULL);
krb5int_unlock_fac();
return 0;