memcpy(recv_msg, buf, header_size);
MS_SAFE_FREE(buf);
- if (strlen(recv_msg->org_path) == 0 || strlen(recv_msg->org_path) >= MAX_FILEPATH_LEN) {
+ /* Can be null (kill server msg) */
+ if (strlen(recv_msg->org_path) >= MAX_FILEPATH_LEN) {
MSAPI_DBG_ERR("org_path size is invlid[%d]", strlen(recv_msg->org_path));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
+ /* Can be null (raw request case) */
if (strlen(recv_msg->dst_path) >= MAX_FILEPATH_LEN) {
MSAPI_DBG_ERR("dst_path size is invlid[%d]", strlen(recv_msg->dst_path));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;