aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/pgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluto/pgp.c')
-rw-r--r--src/pluto/pgp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pluto/pgp.c b/src/pluto/pgp.c
index aab9bff67..f6744fd8a 100644
--- a/src/pluto/pgp.c
+++ b/src/pluto/pgp.c
@@ -521,7 +521,7 @@ static bool
same_pgpcert(pgpcert_t *a, pgpcert_t *b)
{
return a->certificate.len == b->certificate.len &&
- memcmp(a->certificate.ptr, b->certificate.ptr, b->certificate.len) == 0;
+ memeq(a->certificate.ptr, b->certificate.ptr, b->certificate.len);
}
/*
@@ -531,7 +531,9 @@ void
share_pgpcert(pgpcert_t *cert)
{
if (cert != NULL)
+ {
cert->count++;
+ }
}
/*