From: Mark Eichin Date: Mon, 2 Oct 1995 19:22:43 +0000 (+0000) Subject: * krb5_encode.c (krb5_cleanup): If asn1buf_destroy fails, don't X-Git-Tag: krb5-1.0-beta6~951 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d7608215eb4b75ce346c8eb18a3ef3c237c2039;p=krb5.git * 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 --- 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