From 5d7608215eb4b75ce346c8eb18a3ef3c237c2039 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Mon, 2 Oct 1995 19:22:43 +0000 Subject: [PATCH] * krb5_encode.c (krb5_cleanup): If asn1buf_destroy fails, don't call it again. (Not that it can ever fail anyhow.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6917 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 5 +++++ src/lib/krb5/asn.1/krb5_encode.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 0acc7993c..76b523564 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 28 23:35:06 1995 Mark W. Eichin + + * krb5_encode.c (krb5_cleanup): If asn1buf_destroy fails, don't + call it again. (Not that it can ever fail anyhow.) + Tue Sep 26 19:59:56 1995 * krb5_decode.c: Systematic rework of all the cleanup code to make diff --git a/src/lib/krb5/asn.1/krb5_encode.c b/src/lib/krb5/asn.1/krb5_encode.c index d8223b092..3411c898d 100644 --- a/src/lib/krb5/asn.1/krb5_encode.c +++ b/src/lib/krb5/asn.1/krb5_encode.c @@ -136,7 +136,6 @@ return retval; }\ retval = asn1buf_destroy(&buf);\ if(retval){\ - asn1buf_destroy(&buf);\ return retval; }\ \ return 0 -- 2.26.2