(_krb5_pk_load_id): fail directoy for first calloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21133 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1492,8 +1492,7 @@ _krb5_pk_load_id(krb5_context context,
|
||||
id = calloc(1, sizeof(*id));
|
||||
if (id == NULL) {
|
||||
krb5_set_error_string(context, "malloc: out of memory");
|
||||
ret = ENOMEM;
|
||||
goto out;
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
ret = hx509_context_init(&id->hx509ctx);
|
||||
|
Reference in New Issue
Block a user