dirmngr: More minor fixes.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 24 Jul 2017 06:35:34 +0000 (15:35 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 24 Jul 2017 06:35:34 +0000 (15:35 +0900)
* dirmngr/http.c (http_verify_server_credentials): Duplicated const.
* dirmngr/ldap.c (parse_one_pattern): Add comment.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/http.c
dirmngr/ldap.c

index c641070..b16de7d 100644 (file)
@@ -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;
index d661a68..adf8307 100644 (file)
@@ -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*)))";