[Pkg-gnupg-commit] [gnupg2] 135/185: dirmngr: More minor fixes.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 11:55:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 789401e9557db13422f47a8c09e693f3cee0132b
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Mon Jul 24 15:35:34 2017 +0900
dirmngr: More minor fixes.
* dirmngr/http.c (http_verify_server_credentials): Duplicated const.
* dirmngr/ldap.c (parse_one_pattern): Add comment.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
dirmngr/http.c | 2 +-
dirmngr/ldap.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dirmngr/http.c b/dirmngr/http.c
index c641070..b16de7d 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -3282,7 +3282,7 @@ gpg_error_t
http_verify_server_credentials (http_session_t sess)
{
#if HTTP_USE_GNUTLS
- static const char const errprefix[] = "TLS verification of peer failed";
+ static const char errprefix[] = "TLS verification of peer failed";
int rc;
unsigned int status;
const char *hostname;
diff --git a/dirmngr/ldap.c b/dirmngr/ldap.c
index d661a68..adf8307 100644
--- a/dirmngr/ldap.c
+++ b/dirmngr/ldap.c
@@ -363,6 +363,7 @@ parse_one_pattern (const char *pattern)
break;
case '*':
pattern++;
+ /* fall through */
default: /* Take as substring match. */
{
const char format[] = "(|(sn=*%s*)(|(cn=*%s*)(mail=*%s*)))";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list