projects
/
platform
/
core
/
system
/
sensord.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf3ed1e
)
Fix a fortify failure while get auto_rotation sensor
43/191743/2
author
chakradhar
<v.pogiri@samsung.com>
Tue, 23 Oct 2018 06:38:50 +0000
(12:08 +0530)
committer
chakradhar
<v.pogiri@samsung.com>
Thu, 25 Oct 2018 04:29:07 +0000
(09:59 +0530)
Change-Id: Idac93075ba393985668ebdb0298a0f1c23261312
Signed-off-by: chakradhar <v.pogiri@samsung.com>
src/shared/ipc_client.cpp
patch
|
blob
|
history
diff --git
a/src/shared/ipc_client.cpp
b/src/shared/ipc_client.cpp
index
1376ac7
..
f021784
100644
(file)
--- a/
src/shared/ipc_client.cpp
+++ b/
src/shared/ipc_client.cpp
@@
-56,6
+56,9
@@
channel *ipc_client::connect(channel_handler *handler, event_loop *loop, bool bi
channel *ch;
channel_event_handler *ev_handler;
+ retvm_if(access(m_path.c_str(), F_OK), NULL,
+ "Failed to access to %s", m_path.c_str());
+
sock = new(std::nothrow) stream_socket();
retvm_if(!sock, NULL, "Failed to allocate memory");