[strongSwan-dev] 5.5.3 compilation error

Emeric POUPON emeric.poupon at stormshield.eu
Tue Jun 20 11:49:16 CEST 2017


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


More information about the Dev mailing list