From: Felix Fietkau Date: Sat, 16 Jan 2016 11:22:00 +0000 (+0100) Subject: uclient-fetch: only add default CA entries if no certificate was supplied and verify... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9500b666729d5f616e5e106ab725c5f2cbc5171b;p=project%2Fuclient.git uclient-fetch: only add default CA entries if no certificate was supplied and verify was requested Signed-off-by: Felix Fietkau --- diff --git a/uclient-fetch.c b/uclient-fetch.c index 914bdcc..8d03c3d 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -410,7 +410,7 @@ int main(int argc, char **argv) return 1; } - if (ssl_ctx) + if (ssl_ctx && default_certs) init_ca_cert(); rc = init_request(cl);