[svn] dirmngr - r226 - trunk/src
svn author wk
cvs at cvs.gnupg.org
Mon Jun 19 21:39:59 CEST 2006
Author: wk
Date: 2006-06-19 21:39:58 +0200 (Mon, 19 Jun 2006)
New Revision: 226
Modified:
trunk/src/ChangeLog
trunk/src/certcache.c
trunk/src/validate.c
Log:
Fixed stupid error.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2006-06-08 11:47:56 UTC (rev 225)
+++ trunk/src/ChangeLog 2006-06-19 19:39:58 UTC (rev 226)
@@ -1,3 +1,9 @@
+2006-06-19 Werner Koch <wk at g10code.com>
+
+ * certcache.c (compare_serialno): Silly me. Using 0 as true is
+ that hard; tsss. Fixed call cases except for the only working one
+ which are both numbers of the same length.
+
2006-05-15 Werner Koch <wk at g10code.com>
* crlfetch.c (crl_fetch): Use no-shutdown flag for HTTP. This
@@ -449,7 +455,7 @@
ChangeLog.
- Copyright 2004, 2005 g10 Code GmbH
+ Copyright 2004, 2005, 2006 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
Modified: trunk/src/certcache.c
===================================================================
--- trunk/src/certcache.c 2006-06-08 11:47:56 UTC (rev 225)
+++ trunk/src/certcache.c 2006-06-19 19:39:58 UTC (rev 226)
@@ -117,7 +117,7 @@
unsigned long n_a, n_b;
if (!a || !b)
- return (!a && !b);
+ return !(!a && !b);
n_a = strtoul (a+1, (char**)&endp, 10);
a = endp;
@@ -126,10 +126,10 @@
if (*a != ':' || *b != ':')
{
log_debug ("invalid S-exp in compare_serialno\n");
- return 0;
+ return 1;
}
if (n_a != n_b)
- return 0;
+ return 1;
a++;
b++;
Modified: trunk/src/validate.c
===================================================================
--- trunk/src/validate.c 2006-06-08 11:47:56 UTC (rev 225)
+++ trunk/src/validate.c 2006-06-19 19:39:58 UTC (rev 226)
@@ -360,7 +360,7 @@
}
}
- /* Do we have any critical extesnions in the certificate we
+ /* Do we have any critical extensions in the certificate we
can't handle? */
err = unknown_criticals (subject_cert);
if (err)
More information about the Gnupg-commits
mailing list