[PATCH 1/4] * Remove un-needed check. If 'url' were not to be true, http_parse_uri(parse_uri(do_parse_uri))) would fail, leaving 'err' false.

Joshua Rogers git at internot.info
Sun Dec 21 19:21:28 CET 2014


---
 dirmngr/crlfetch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dirmngr/crlfetch.c b/dirmngr/crlfetch.c
index 2471ca2..29785d2 100644
--- a/dirmngr/crlfetch.c
+++ b/dirmngr/crlfetch.c
@@ -166,7 +166,7 @@ crl_fetch (ctrl_t ctrl, const char *url, ksba_reader_t *reader)
  once_more:
   err = http_parse_uri (&uri, url, 0);
   http_release_parsed_uri (uri);
-  if (err && url && !strncmp (url, "https:", 6))
+  if (err && !strncmp (url, "https:", 6))
     {
       /* Our HTTP code does not support TLS, thus we can't use this
          scheme and it is frankly not useful for CRL retrieval anyway.
-- 
1.9.1




More information about the Gnupg-devel mailing list