Check for NULL return from gethostent.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2362 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-16 03:45:23 +00:00
parent 3ec1516061
commit 18797d20ba

View File

@@ -76,6 +76,8 @@ krb5_sendto_kdc (krb5_context context,
if (colon)
*colon = '\0';
hostent = gethostbyname (p);
if(hostent == NULL)
continue;
if (colon)
*colon++ = ':';
while ((addr = *hostent->h_addr_list++)) {