gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, new, updated. gnutls_2_9_10-127-g65d2a34


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, new, updated. gnutls_2_9_10-127-g65d2a34
Date: Mon, 24 May 2010 21:46:52 +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 gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=65d2a34b3b954e7e4bc0739ba3505f251c0bfdbb

The branch, new has been updated
       via  65d2a34b3b954e7e4bc0739ba3505f251c0bfdbb (commit)
      from  95c21a502abfad1820b91f7dcd56b9ae423ae631 (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 65d2a34b3b954e7e4bc0739ba3505f251c0bfdbb
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Mon May 24 23:45:56 2010 +0200

    Better checks in loops.

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

Summary of changes:
 lib/gnutls_algorithms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c
index 2f08e7b..2ba2422 100644
--- a/lib/gnutls_algorithms.c
+++ b/lib/gnutls_algorithms.c
@@ -2021,7 +2021,7 @@ _gnutls_x509_oid2sign_algorithm (const char *oid)
 {
   gnutls_sign_algorithm_t ret = 0;
 
-  GNUTLS_SIGN_LOOP (if (strcmp (oid, p->oid) == 0)
+  GNUTLS_SIGN_LOOP (if (p->oid && strcmp (oid, p->oid) == 0)
                    {
                    ret = p->id; break;}
   );
@@ -2244,7 +2244,7 @@ _gnutls_x509_oid2pk_algorithm (const char *oid)
   const gnutls_pk_entry *p;
 
   for (p = pk_algorithms; p->name != NULL; p++)
-    if (strcmp (p->oid, oid) == 0)
+    if (p->oid && strcmp (p->oid, oid) == 0)
       {
        ret = p->id;
        break;


hooks/post-receive
-- 
GNU gnutls



reply via email to

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