(_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:
Love Hörnquist Åstrand
2007-06-18 20:52:29 +00:00
parent 14537be0f4
commit 6a7734667a

View File

@@ -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);