diff options
author | chleun.moon <chleun.moon@samsung.com> | 2017-09-11 10:15:47 +0900 |
---|---|---|
committer | chleun.moon <chleun.moon@samsung.com> | 2017-09-11 10:16:49 +0900 |
commit | 5dee652820b055c8dcddb56f101584ae1474c20c (patch) | |
tree | d9e980e7d6604f0e0387ef34aceef91de133593b /vpn | |
parent | c98b80f557bad82b6f9f671fc7a8505e3137fb5e (diff) | |
download | connman-5dee652820b055c8dcddb56f101584ae1474c20c.tar.gz connman-5dee652820b055c8dcddb56f101584ae1474c20c.tar.bz2 connman-5dee652820b055c8dcddb56f101584ae1474c20c.zip |
[WGID-253397, 253398] Fix unreachable codesubmit/tizen/20170911.125730
Change-Id: Ie3faef9d95d95cbcfbd222d92f25e6eae8e41581
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Diffstat (limited to 'vpn')
-rw-r--r-- | vpn/plugins/ipsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpn/plugins/ipsec.c b/vpn/plugins/ipsec.c index 6862fbcc..7a2675e0 100644 --- a/vpn/plugins/ipsec.c +++ b/vpn/plugins/ipsec.c @@ -267,7 +267,7 @@ static int read_der_file(const char *path, X509 **cert) } *cert = d2i_X509_fp(fp, NULL); - if (!fp) { + if (!(*cert)) { connman_error("Failed to read der file"); err = -EINVAL; } @@ -295,7 +295,7 @@ static int read_pem_file(const char *path, X509 **cert) } *cert = PEM_read_X509(fp, cert, NULL, NULL); - if (!fp) { + if (!(*cert)) { connman_error("Failed to read pem file"); err = -EINVAL; } |