summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-09-23 20:32:01 +0300
committerNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-09-23 20:32:01 +0300
commit4ca99e05b90dd894927c252fe0123b77f4f6de1d (patch)
treed0387d54af6a590be8e53cece0976db5d862536a /lib
parentbb3bc56370e3b291219695bec5d4e1cbfc3241be (diff)
downloadgnutls-4ca99e05b90dd894927c252fe0123b77f4f6de1d.tar.gz
corrected embarrasing bug.
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/privkey.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c
index 3d934676b3..7e6cfa437a 100644
--- a/lib/x509/privkey.c
+++ b/lib/x509/privkey.c
@@ -1075,10 +1075,10 @@ _gnutls_asn1_encode_rsa (ASN1_TYPE * c2, bigint_t * params)
*/
/* first make sure that no previously allocated data are leaked */
- if (c2 != ASN1_TYPE_EMPTY)
+ if (*c2 != ASN1_TYPE_EMPTY)
{
asn1_delete_structure (c2);
- c2 = ASN1_TYPE_EMPTY;
+ *c2 = ASN1_TYPE_EMPTY;
}
if ((result = asn1_create_element
@@ -1243,10 +1243,10 @@ _gnutls_asn1_encode_dsa (ASN1_TYPE * c2, bigint_t * params)
*/
/* first make sure that no previously allocated data are leaked */
- if (c2 != ASN1_TYPE_EMPTY)
+ if (*c2 != ASN1_TYPE_EMPTY)
{
asn1_delete_structure (c2);
- c2 = ASN1_TYPE_EMPTY;
+ *c2 = ASN1_TYPE_EMPTY;
}
if ((result = asn1_create_element