mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	network: close settings prior to network removal
station_hide_network will remove and free the network object, so calling
network_close_settings will result in a crash.  Make sure this is done
prior to network object's destruction.
Fixes: 85d9d6461f1f ("network: Hide hidden networks on connection error")
			
			
This commit is contained in:
		
							parent
							
								
									c5f44f8d38
								
							
						
					
					
						commit
						867c68c05b
					
				| @ -1248,10 +1248,10 @@ static void passphrase_callback(enum agent_result result, | ||||
| 	return; | ||||
| 
 | ||||
| err: | ||||
| 	network_settings_close(network); | ||||
| 
 | ||||
| 	if (network->provisioning_hidden) | ||||
| 		station_hide_network(station, network); | ||||
| 
 | ||||
| 	network_settings_close(network); | ||||
| } | ||||
| 
 | ||||
| static struct l_dbus_message *network_connect_psk(struct network *network, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Denis Kenzior
						Denis Kenzior