e_comp_wl_rsm: fix dereference null 34/231734/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 24 Apr 2020 03:09:09 +0000 (12:09 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 24 Apr 2020 04:06:05 +0000 (13:06 +0900)
Change-Id: Ifaacc271f54626a2ff869943f36335ee1a97e327

src/bin/e_comp_wl_rsm.c

index 2f7a39d28bb9ccef774b384d87e28deffec1a651..7e88421d3749316df9d844f135b1576e058b125f 100644 (file)
@@ -2349,7 +2349,7 @@ _remote_manager_cb_surface_create(struct wl_client *client,
 
         if (version >= TIZEN_REMOTE_SURFACE_CHANGED_BUFFER_SINCE_VERSION)
           {
-             if (ec->comp_data->sub.data)
+             if ((ec->comp_data) && (ec->comp_data->sub.data))
                {
                   ERR("Subsurface could not be source client");
                   goto fail;
@@ -2513,7 +2513,7 @@ _remote_manager_cb_surface_create_with_wl_surface(struct wl_client *client,
 
         if (version >= TIZEN_REMOTE_SURFACE_CHANGED_BUFFER_SINCE_VERSION)
           {
-             if (provider_ec->comp_data->sub.data)
+             if ((provider_ec->comp_data) && (provider_ec->comp_data->sub.data))
                {
                   ERR("Subsurface could not be source client");
                   goto fail;