use right variable

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25190 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-05-06 19:03:24 +00:00
parent 0de4182acb
commit 0da1e21fdb

View File

@@ -1398,8 +1398,7 @@ get_AuthorityKeyIdentifier(hx509_context context,
*/
ret = copy_Name(&certificate->tbsCertificate.subject, &name);
if (ai->authorityCertSerialNumber == NULL) {
ret = ENOMEM;
if (ret) {
hx509_set_error_string(context, 0, ret, "Out of memory");
goto out;
}