mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	ipaccess-find: Address a warning by coverity of unitialized memory
Use a memset on the sockaddr_in to make coverity happy. Fixes: CID 1040705
This commit is contained in:
		@@ -47,6 +47,7 @@ static int udp_sock(const char *ifname)
 | 
				
			|||||||
			goto err;
 | 
								goto err;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						memset(&sa, 0, sizeof(sa));
 | 
				
			||||||
	sa.sin_family = AF_INET;
 | 
						sa.sin_family = AF_INET;
 | 
				
			||||||
	sa.sin_port = htons(3006);
 | 
						sa.sin_port = htons(3006);
 | 
				
			||||||
	sa.sin_addr.s_addr = INADDR_ANY;
 | 
						sa.sin_addr.s_addr = INADDR_ANY;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user