diff options
author | Jack Lloyd <[email protected]> | 2018-08-16 19:14:35 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-16 19:14:35 -0400 |
commit | 73e85fbc7ddbe2f8722fb40286845beb91cc572e (patch) | |
tree | 876e5c94774d190db7716290143b54f0a2499067 /src/lib/ffi/ffi_cert.cpp | |
parent | 5d15cbbad729cde83f35ca4e73c3afd62f0e5f7c (diff) |
Ignore an empty string ("") for trusted_path argument
Diffstat (limited to 'src/lib/ffi/ffi_cert.cpp')
-rw-r--r-- | src/lib/ffi/ffi_cert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi_cert.cpp b/src/lib/ffi/ffi_cert.cpp index 723bea862..2da729490 100644 --- a/src/lib/ffi/ffi_cert.cpp +++ b/src/lib/ffi/ffi_cert.cpp @@ -284,7 +284,7 @@ int botan_x509_cert_verify(int* result_code, std::unique_ptr<Botan::Certificate_Store_In_Memory> trusted_extra; std::vector<Botan::Certificate_Store*> trusted_roots; - if(trusted_path) + if(trusted_path && *trusted_path) { trusted_from_path.reset(new Botan::Certificate_Store_In_Memory(trusted_path)); trusted_roots.push_back(trusted_from_path.get()); |