dirmngr: Use a better error code.
authorNeal H. Walfield <neal@g10code.com>
Tue, 31 Mar 2015 10:07:39 +0000 (12:07 +0200)
committerNeal H. Walfield <neal@g10code.com>
Tue, 31 Mar 2015 10:07:39 +0000 (12:07 +0200)
* dirmngr/ldap-parse-uri.c (ldap_parse_uri): On error, return
GPG_ERR_GENERAL, not GPG_ERR_ASS_GENERAL.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
dirmngr/ldap-parse-uri.c

index 9a6d619..62f8f6d 100644 (file)
@@ -94,7 +94,7 @@ ldap_parse_uri (parsed_uri_t *purip, const char *uri)
   if (result != 0)
     {
       log_error ("Unable to parse LDAP uri '%s'\n", uri);
-      err = GPG_ERR_ASS_GENERAL;
+      err = GPG_ERR_GENERAL;
       goto out;
     }