projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efda17e
)
Fix reference before null check (WGID 227715)
41/131241/2
author
chleun.moon
<chleun.moon@samsung.com>
Fri, 26 May 2017 04:11:06 +0000
(13:11 +0900)
committer
cheoleun moon
<chleun.moon@samsung.com>
Tue, 30 May 2017 01:20:34 +0000
(
01:20
+0000)
Change-Id: Iefe9af8c8a05877a16ed71cadf23aaed7053fa9a
Signed-off-by: cheoleun <chleun.moon@samsung.com>
vpn/plugins/vici-client.c
patch
|
blob
|
history
diff --git
a/vpn/plugins/vici-client.c
b/vpn/plugins/vici-client.c
index c312fede0e0f35872c61a95535cd808b0ffecb7e..5eb16ff19ef9b7d4f74abacf2aaa699078873071 100644
(file)
--- a/
vpn/plugins/vici-client.c
+++ b/
vpn/plugins/vici-client.c
@@
-268,6
+268,11
@@
static char *load_cert_from_path(const char *path)
char *file_buff = NULL;
fp = fopen(path, "rb");
+ if (fp == NULL) {
+ connman_error("fopen failed");
+ return NULL;
+ }
+
fd = fileno(fp);
fstat(fd, &st);
file_size = st.st_size;