mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	protocol-esound: don't accept a request of PROTOCOL_MAX
This commit is contained in:
		
							parent
							
								
									2c6abb8793
								
							
						
					
					
						commit
						c0cf22d081
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -924,7 +924,7 @@ static int do_read(connection *c) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            c->request = PA_MAYBE_INT32_SWAP(c->swap_byte_order, c->request);
 | 
					            c->request = PA_MAYBE_INT32_SWAP(c->swap_byte_order, c->request);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (c->request < ESD_PROTO_CONNECT || c->request > ESD_PROTO_MAX) {
 | 
					            if (c->request < ESD_PROTO_CONNECT || c->request >= ESD_PROTO_MAX) {
 | 
				
			||||||
                pa_log("recieved invalid request.");
 | 
					                pa_log("recieved invalid request.");
 | 
				
			||||||
                return -1;
 | 
					                return -1;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue