libtasn1-commit
[Top][All Lists]
Advanced

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

[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_5-5-g94c8a2d


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_5-5-g94c8a2d
Date: Sat, 10 May 2014 11:53:06 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU libtasn1".

http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=94c8a2d9f018c22116f5c3fef8b81504a1ab471b

The branch, master has been updated
       via  94c8a2d9f018c22116f5c3fef8b81504a1ab471b (commit)
      from  1a1a7a8a27b15e31a408b8cb787e4045eaa57f87 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 94c8a2d9f018c22116f5c3fef8b81504a1ab471b
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat May 10 13:53:01 2014 +0200

    cleaned up a bit _asn1_remove_node().

-----------------------------------------------------------------------

Summary of changes:
 lib/parser_aux.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 6b34512..31d1770 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -458,12 +458,16 @@ _asn1_remove_node (asn1_node node, unsigned int flags)
   if (node == NULL)
     return;
 
-  if (flags & ASN1_DELETE_FLAG_ZEROIZE && node->value) {
-    safe_memset(node->value, 0, node->value_len);
-  }
+  if (node->value != NULL)
+    {
+      if (flags & ASN1_DELETE_FLAG_ZEROIZE)
+        {
+          safe_memset(node->value, 0, node->value_len);
+        }
 
-  if (node->value != NULL && node->value != node->small_value)
-    free (node->value);
+      if (node->value != node->small_value)
+        free (node->value);
+    }
   free (node);
 }
 


hooks/post-receive
-- 
GNU libtasn1



reply via email to

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