+Tue Sep 26 13:00:54 2000 Ezra Peisach <epeisach@mit.edu>
+
+ * conv_princ.c (krb5_425_conv_principal): Call profile_free_list
+ on v4realms during the iteration loop. Do not call
+ profile_release_string with a NULL pointer.
+
2000-09-25 Ezra Peisach <epeisach@mit.edu>
* t_kerb.c: Add prototypes for test functions.
} else if ((retval == 0) && (realm_name == NULL)) {
break;
}
+ if (v4realms != NULL) {
+ profile_free_list(v4realms);
+ v4realms = NULL;
+ }
if (realm_name != NULL) {
profile_release_string (realm_name);
realm_name = NULL;
not_service:
retval = krb5_build_principal(context, princ, strlen(realm), realm, name,
instance, 0);
- profile_iterator_free (&iterator);
- profile_free_list(full_name);
- profile_free_list(v4realms);
- profile_release_string (realm_name);
- profile_release_string (dummy_value);
+ if (iterator) profile_iterator_free (&iterator);
+ if (full_name) profile_free_list(full_name);
+ if (v4realms) profile_free_list(v4realms);
+ if (realm_name) profile_release_string (realm_name);
+ if (dummy_value) profile_release_string (dummy_value);
return retval;
}