a realm before trying to copy it (since profile_get_string
may return no error but not get anything).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11629
dc483132-0cff-0310-8789-
dd5450dbe970
1999-08-06 Danilo Almeida <dalmeida@mit.edu>
+ * def_realm.c (krb5_get_default_realm): Check that we have
+ a realm before trying to copy it (since profile_get_string
+ may return no error but not get anything).
+
* init_os_ctx.c (krb5_get_profile): Fix calling convention.
1999-08-05 Danilo Almeida <dalmeida@mit.edu>
"default_realm", 0, 0,
&realm);
- if (!retval) {
+ if (!retval && realm) {
context->default_realm = malloc(strlen(realm) + 1);
if (!context->default_realm) {
profile_release_string(realm);