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:
@@ -76,6 +76,8 @@ krb5_sendto_kdc (krb5_context context,
|
|||||||
if (colon)
|
if (colon)
|
||||||
*colon = '\0';
|
*colon = '\0';
|
||||||
hostent = gethostbyname (p);
|
hostent = gethostbyname (p);
|
||||||
|
if(hostent == NULL)
|
||||||
|
continue;
|
||||||
if (colon)
|
if (colon)
|
||||||
*colon++ = ':';
|
*colon++ = ':';
|
||||||
while ((addr = *hostent->h_addr_list++)) {
|
while ((addr = *hostent->h_addr_list++)) {
|
||||||
|
Reference in New Issue
Block a user