NULL, and return an error in that case.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11129
dc483132-0cff-0310-8789-
dd5450dbe970
+1999-01-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * localaddr.c: On the macintosh, check to see if getmyipaddr
+ returns NULL, and return an error in that case.
+
Tue Jan 5 00:11:49 1999 Theodore Y. Ts'o <tytso@mit.edu>
* sn2princ.c (krb5_sname_to_principal): Windows NT5's broken
#ifdef HAVE_MACSOCK_H
hostrec = getmyipaddr();
+ /*
+ * XXX This error code is not right, but we have nothing better.
+ * This will get fixed when we eventually replace the entire
+ * Macintosh socket emulation layer.
+ */
+ if (!hostrec)
+ return ENOMEM;
#else /* HAVE_MACSOCK_H */
err = 0;
return(0);
}
#endif
+