Fix a fortify failure while get auto_rotation sensor 43/191743/2
authorchakradhar <v.pogiri@samsung.com>
Tue, 23 Oct 2018 06:38:50 +0000 (12:08 +0530)
committerchakradhar <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

index 1376ac7..f021784 100644 (file)
@@ -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");