79356011

Date: 2025-01-14 18:29:56
Score: 1
Natty:
Report link

In the original code, this fixes the issue:

int inetPtonReturnValue { inet_pton(AF_INET, IPAddress.c_str(), &structSockAddr.sa_data[2]) };

The first 2 bytes of sa_data are for the port.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yves Trudeau