mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn.git
				synced 2025-11-03 21:53:16 +00:00 
			
		
		
		
	bsc_hack: Don't strdup the string arguments
Fixes CIDs #1206577, #1206578
This commit is contained in:
		
				
					committed by
					
						
						Holger Hans Peter Freyther
					
				
			
			
				
	
			
			
			
						parent
						
							45fcb85236
						
					
				
				
					commit
					038f97a69f
				
			@@ -148,10 +148,10 @@ static void handle_options(int argc, char **argv)
 | 
			
		||||
			daemonize = 1;
 | 
			
		||||
			break;
 | 
			
		||||
		case 'l':
 | 
			
		||||
			database_name = strdup(optarg);
 | 
			
		||||
			database_name = optarg;
 | 
			
		||||
			break;
 | 
			
		||||
		case 'c':
 | 
			
		||||
			config_file = strdup(optarg);
 | 
			
		||||
			config_file = optarg;
 | 
			
		||||
			break;
 | 
			
		||||
		case 'p':
 | 
			
		||||
			create_pcap_file(optarg);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user