This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 38876230fb Coverity 1518060: Uninitialized scalar variable (#10212)
38876230fb is described below

commit 38876230fb5740f922c82c22972c93fcfb38c444
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Tue Aug 22 09:03:08 2023 +0900

    Coverity 1518060: Uninitialized scalar variable (#10212)
---
 iocore/net/UnixUDPNet.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/UnixUDPNet.cc b/iocore/net/UnixUDPNet.cc
index e96128ef9d..6c7410adc1 100644
--- a/iocore/net/UnixUDPNet.cc
+++ b/iocore/net/UnixUDPNet.cc
@@ -1014,8 +1014,8 @@ bool
 UDPNetProcessor::CreateUDPSocket(int *resfd, sockaddr const *remote_addr, 
Action **status, NetVCOptions const &opt)
 {
   int res = 0, fd = -1;
-  int local_addr_len;
   IpEndpoint local_addr;
+  int local_addr_len = sizeof(local_addr.sa);
 
   // Need to do address calculations first, so we can determine the
   // address family for socket creation.

Reply via email to