summaryrefslogtreecommitdiff
path: root/uclient-fetch.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-16 12:22:00 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-01-16 12:22:00 +0100
commit9500b666729d5f616e5e106ab725c5f2cbc5171b (patch)
treeb70bc7989f2f41f22f79575952de27e4282226ef /uclient-fetch.c
parentc61c854703515fa7bafcbe105ec01e3d833eeb19 (diff)
downloaduclient-9500b666729d5f616e5e106ab725c5f2cbc5171b.tar.gz
uclient-fetch: only add default CA entries if no certificate was supplied and verify was requested
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-fetch.c')
-rw-r--r--uclient-fetch.c2
1 files changed, 1 insertions, 1 deletions
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);