gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7608 - libmicrohttpd/src/daemon/https/minitasn1


From: gnunet
Subject: [GNUnet-SVN] r7608 - libmicrohttpd/src/daemon/https/minitasn1
Date: Sun, 24 Aug 2008 16:11:38 -0600 (MDT)

Author: grothoff
Date: 2008-08-24 16:11:38 -0600 (Sun, 24 Aug 2008)
New Revision: 7608

Modified:
   libmicrohttpd/src/daemon/https/minitasn1/decoding.c
Log:
leaks

Modified: libmicrohttpd/src/daemon/https/minitasn1/decoding.c
===================================================================
--- libmicrohttpd/src/daemon/https/minitasn1/decoding.c 2008-08-24 22:09:35 UTC 
(rev 7607)
+++ libmicrohttpd/src/daemon/https/minitasn1/decoding.c 2008-08-24 22:11:38 UTC 
(rev 7608)
@@ -629,7 +629,10 @@
           temp2 = temp + len2;
           len2 = asn1_get_length_der (der, *len, &len3);
           if (len2 < -1)
-            return ASN1_DER_ERROR;
+           {
+             _asn1_afree (temp);
+             return ASN1_DER_ERROR;
+           }
           counter2 = len3 + 1;
 
           if (indefinite == -1)
@@ -642,7 +645,10 @@
               len2 =
                 asn1_get_length_der (der + counter2, *len - counter, &len3);
               if (len2 < -1)
-                return ASN1_DER_ERROR;
+               {
+                 _asn1_afree (temp);
+                 return ASN1_DER_ERROR;
+               }
 
               /* FIXME: to be checked. Is this ok? Has the
                * size been checked before?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]