(krb5_enctype_to_string): make sure string is NULL on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21947 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -2768,6 +2768,7 @@ krb5_enctype_to_string(krb5_context context,
|
|||||||
if(e == NULL) {
|
if(e == NULL) {
|
||||||
krb5_set_error_string (context, "encryption type %d not supported",
|
krb5_set_error_string (context, "encryption type %d not supported",
|
||||||
etype);
|
etype);
|
||||||
|
*string = NULL;
|
||||||
return KRB5_PROG_ETYPE_NOSUPP;
|
return KRB5_PROG_ETYPE_NOSUPP;
|
||||||
}
|
}
|
||||||
*string = strdup(e->name);
|
*string = strdup(e->name);
|
||||||
|
Reference in New Issue
Block a user