Hello,

Compiling strongSwan 5.5.3 gives this issue:
kernel_pfroute_net.c: In function 'enumerate_subnets':
kernel_pfroute_net.c:1732:14: error: 'netmask' may be used uninitialized in 
this function [-Werror=maybe-uninitialized]
  if (sockaddr->sa_family == 255)
              ^
kernel_pfroute_net.c:1834:20: note: 'netmask' was declared here
   struct sockaddr *netmask;
                    ^
There is indeed a path where netmask is used with no initialization.
Not sure about the fix, what do you think?

Emeric

Reply via email to