[prev in list] [next in list] [prev in thread] [next in thread]
List: strongswan-announce
Subject: [strongSwan-dev] [PATCH 2/8] Fix resource leak in x509_ocsp_response
From: Thomas Egerer <thomas.egerer () secunet ! com>
Date: 2011-11-04 8:24:47
Message-ID: 4EB3A14F.5040700 () secunet ! com
[Download RAW message or body]
---
.../plugins/x509/x509_ocsp_response.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
["0002-Fix-resource-leak-in-x509_ocsp_response.patch" (text/x-patch)]
diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_response.c \
b/src/libstrongswan/plugins/x509/x509_ocsp_response.c index eef01ec..23b206f 100644
--- a/src/libstrongswan/plugins/x509/x509_ocsp_response.c
+++ b/src/libstrongswan/plugins/x509/x509_ocsp_response.c
@@ -373,6 +373,10 @@ static bool parse_singleResponse(private_x509_ocsp_response_t \
*this, }
this->responses->insert_last(this->responses, response);
}
+ else
+ {
+ free(response);
+ }
return success;
}
_______________________________________________
Dev mailing list
Dev@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic