merge changes from 0.9.9 branch

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5159 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-09-26 20:59:53 +00:00
parent bf2dd88284
commit 52ce57f0b7

View File

@@ -294,8 +294,11 @@ realm_of_cell(kafs_data *data, const char *cell, char **realm)
}
fclose(F);
}
if (*realm == NULL && dns_find_cell(cell, buf, sizeof(buf)) == 0)
if (*realm == NULL && dns_find_cell(cell, buf, sizeof(buf)) == 0) {
*realm = strdup(krb_realmofhost(buf));
if(*realm != NULL)
ret = 0;
}
return ret;
}