mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-10-31 12:03:50 +00:00 
			
		
		
		
	ipaccess-config: exit if no network interface is specified
ipaccess-config has to exit if no network interface is specified, otherwise it uses argv[1] which has a uninitialized value.
This commit is contained in:
		| @@ -196,6 +196,7 @@ int main(int argc, char **argv) | ||||
| 	if (argc < 2) { | ||||
| 		fprintf(stdout, "you might need to specify the outgoing\n" | ||||
| 			" network interface, e.g. ``%s eth0''\n", argv[0]); | ||||
| 		exit(EXIT_FAILURE); | ||||
| 	} | ||||
|  | ||||
| 	ifname = argv[1]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user