(krb5int_add_host_to_list): Translate errors returned from the second
getaddrinfo call.
ticket: 1339
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15160
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-02-06 Ken Raeburn <raeburn@mit.edu>
+
+ * locate_kdc.c (translate_ai_error): Handle EAI_ADDRFAMILY like
+ EAI_NONAME.
+ (krb5int_add_host_to_list): Translate errors returned from the
+ second getaddrinfo call.
+
2003-02-04 Tom Yu <tlyu@mit.edu>
* prompter.c (krb5_prompter_posix): Rewrite to no longer use
switch (err) {
case 0:
return 0;
-#ifdef EAI_ADDRFAMILY
- case EAI_ADDRFAMILY:
-#endif
case EAI_BADFLAGS:
case EAI_FAMILY:
case EAI_SOCKTYPE:
case EAI_MEMORY:
/* Translate to standard errno code. */
return ENOMEM;
+#ifdef EAI_ADDRFAMILY
+ case EAI_ADDRFAMILY:
+#endif
#if EAI_NODATA != EAI_NONAME
case EAI_NODATA:
#endif
hint.ai_family = AF_INET;
err = getaddrinfo (hostname, secportbuf, &hint, &addrs);
if (err) {
-#if 0
- return translate_ai_error (err);
-#else
+ err = translate_ai_error (err);
goto egress;
-#endif
}
for (a = addrs; a != 0 && err == 0; a = anext) {
anext = a->ai_next;