mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	wayland-server: fix crash on invalid resource
Using display_resource to post error about invalid resource. Reviewed-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
		
							parent
							
								
									1482b9e906
								
							
						
					
					
						commit
						c8dbd8cf9e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -158,7 +158,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
 | 
			
		|||
 | 
			
		||||
		resource = wl_map_lookup(&client->objects, p[0]);
 | 
			
		||||
		if (resource == NULL) {
 | 
			
		||||
			wl_resource_post_error(resource,
 | 
			
		||||
			wl_resource_post_error(client->display_resource,
 | 
			
		||||
					       WL_DISPLAY_ERROR_INVALID_OBJECT,
 | 
			
		||||
					       "invalid object %d", p[0]);
 | 
			
		||||
			break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue