Skip to content

Commit 0a1f804

Browse files
authored
Merge pull request #2 from perl-net-saml2/issues
Fixes #2 - Use after free bug
2 parents bfe1d0e + 6a032eb commit 0a1f804

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Verify.xs

+2-1
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,12 @@ int verify(self, x509)
502502
// int cb = verify_cb(&trust_options, RETVAL, csc);
503503
// RETVAL = cb;
504504
//}
505-
X509_STORE_CTX_free(csc);
506505

507506
if (!RETVAL)
508507
croak("verify: %s", ctx_error(csc));
509508

509+
X509_STORE_CTX_free(csc);
510+
510511
OUTPUT:
511512

512513
RETVAL

0 commit comments

Comments
 (0)