[svn] ksba - r295 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Thu Oct 30 11:14:50 CET 2008
Author: marcus
Date: 2008-10-30 11:14:50 +0100 (Thu, 30 Oct 2008)
New Revision: 295
Modified:
trunk/src/ChangeLog
trunk/src/ocsp.c
Log:
2008-10-30 Marcus Brinkmann <marcus at g10code.de>
* ocsp.c (parse_context_tag): Don't trash the error value.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2008-09-22 09:26:30 UTC (rev 294)
+++ trunk/src/ChangeLog 2008-10-30 10:14:50 UTC (rev 295)
@@ -1,3 +1,7 @@
+2008-10-30 Marcus Brinkmann <marcus at g10code.de>
+
+ * ocsp.c (parse_context_tag): Don't trash the error value.
+
2008-09-04 Werner Koch <wk at g10code.com>
* asn1-func.h (ksba_asn_create_structure): Remove unused prototype
Modified: trunk/src/ocsp.c
===================================================================
--- trunk/src/ocsp.c 2008-09-22 09:26:30 UTC (rev 294)
+++ trunk/src/ocsp.c 2008-10-30 10:14:50 UTC (rev 295)
@@ -237,7 +237,8 @@
err = _ksba_ber_parse_tl (buf, len, ti);
if (err)
;
- if (!(ti->class == CLASS_CONTEXT && ti->tag == tag && ti->is_constructed) )
+ else if (!(ti->class == CLASS_CONTEXT && ti->tag == tag
+ && ti->is_constructed) )
err = gpg_error (GPG_ERR_INV_OBJ);
else if (ti->length > *len)
err = gpg_error (GPG_ERR_BAD_BER);
More information about the Gnupg-commits
mailing list