mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	db: Fix an issue with the memset
We want to memset the entire area of the atuple and not just the first four/eight bytes of the data. Fixes: Coverity CID 1040708
This commit is contained in:
		@@ -511,7 +511,7 @@ int db_get_lastauthtuple_for_subscr(struct gsm_auth_tuple *atuple,
 | 
			
		||||
		return -ENOENT;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	memset(atuple, 0, sizeof(atuple));
 | 
			
		||||
	memset(atuple, 0, sizeof(*atuple));
 | 
			
		||||
 | 
			
		||||
	atuple->use_count = dbi_result_get_ulonglong(result, "use_count");
 | 
			
		||||
	atuple->key_seq = dbi_result_get_ulonglong(result, "key_seq");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user