mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: check for NULL info before accessing it
This commit is contained in:
		
							parent
							
								
									e3b0cc76a3
								
							
						
					
					
						commit
						ee99693f77
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1623,7 +1623,8 @@ static int parse_headset_roles(struct impl *backend, const struct spa_dict *info
 | 
			
		|||
	char role_name[256];
 | 
			
		||||
	enum spa_bt_profile profiles = SPA_BT_PROFILE_NULL;
 | 
			
		||||
 | 
			
		||||
	if ((str = spa_dict_lookup(info, PROP_KEY_HEADSET_ROLES)) == NULL)
 | 
			
		||||
	if (info == NULL ||
 | 
			
		||||
	    (str = spa_dict_lookup(info, PROP_KEY_HEADSET_ROLES)) == NULL)
 | 
			
		||||
		goto fallback;
 | 
			
		||||
 | 
			
		||||
	spa_json_init(&it, str, strlen(str));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue