]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Assert less for expected errors.
authorSimon Josefsson <simon@josefsson.org>
Mon, 2 Feb 2009 14:13:19 +0000 (15:13 +0100)
committerSimon Josefsson <simon@josefsson.org>
Mon, 2 Feb 2009 14:13:19 +0000 (15:13 +0100)
lib/x509/x509.c

index 76712740fe894c9c5b62beb94aed5f9adc177e02..e6c16bf1d8301d10d1cbca10a1cbbf27ae4b2af7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
  * Author: Nikos Mavrogiannopoulos, Simon Josefsson, Howard Chu
  *
  * This file is part of GNUTLS.
@@ -751,7 +751,8 @@ gnutls_x509_crt_get_subject_key_id (gnutls_x509_crt_t cert, void *ret,
 
   if (result != ASN1_SUCCESS)
     {
-      gnutls_assert ();
+      if (result != ASN1_MEM_ERROR)
+       gnutls_assert ();
       return _gnutls_asn2err (result);
     }
 
@@ -840,7 +841,8 @@ gnutls_x509_crt_get_authority_key_id (gnutls_x509_crt_t cert, void *ret,
 
   if (result != ASN1_SUCCESS)
     {
-      gnutls_assert ();
+      if (result != ASN1_MEM_ERROR)
+       gnutls_assert ();
       return _gnutls_asn2err (result);
     }