mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	connection: Fix sendmsg() on FreeBSD
It expects ((msg_controllen == 0) == (msg_control == NULL)), and returns EINVAL otherwise. It can't hurt to be tidy about things on other platforms either though. See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=99356#c5 Signed-off-by: Philip Withnall <philip at tecnocode.co.uk> Signed-off-by: Karsten Otto <ottoka at posteo.de> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
		
							parent
							
								
									0953e126d7
								
							
						
					
					
						commit
						cb00e27039
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -290,7 +290,7 @@ wl_connection_flush(struct wl_connection *connection)
 | 
			
		|||
		msg.msg_namelen = 0;
 | 
			
		||||
		msg.msg_iov = iov;
 | 
			
		||||
		msg.msg_iovlen = count;
 | 
			
		||||
		msg.msg_control = cmsg;
 | 
			
		||||
		msg.msg_control = (clen > 0) ? cmsg : NULL;
 | 
			
		||||
		msg.msg_controllen = clen;
 | 
			
		||||
		msg.msg_flags = 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue