Skip to content

Commit 2965edb

Browse files
committed
Correct buffer size for XINET_PTON in FUSION_RTOS
1 parent 42af7f8 commit 2965edb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sniffer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ static int SetNamedPrivateKey(const char* name, const char* address, int port,
18241824
if (serverIp.ip4 == XINADDR_NONE) {
18251825
#ifdef FUSION_RTOS
18261826
if (XINET_PTON(AF_INET6, address, serverIp.ip6,
1827-
sizeof(serverIp.ip4)) == 1)
1827+
sizeof(serverIp.ip6)) == 1)
18281828
#elif defined(FREESCALE_MQX)
18291829
if (XINET_PTON(AF_INET6, address, serverIp.ip6,
18301830
sizeof(serverIp.ip6)) == RTCS_OK)
@@ -7658,7 +7658,7 @@ static int addKeyLogSnifferServerHelper(const char* address,
76587658
if (serverIp.ip4 == XINADDR_NONE) {
76597659
#ifdef FUSION_RTOS
76607660
if (XINET_PTON(AF_INET6, address, serverIp.ip6,
7661-
sizeof(serverIp.ip4)) == 1)
7661+
sizeof(serverIp.ip6)) == 1)
76627662
#elif defined(FREESCALE_MQX)
76637663
if (XINET_PTON(AF_INET6, address, serverIp.ip6,
76647664
sizeof(serverIp.ip6)) == RTCS_OK)
@@ -7786,7 +7786,7 @@ int ssl_RemoveSession(const char* clientIp, int clientPort,
77867786
if (clientAddr.ip4 == XINADDR_NONE) {
77877787
#ifdef FUSION_RTOS
77887788
if (XINET_PTON(AF_INET6, clientIp, clientAddr.ip6,
7789-
sizeof(clientAddr.ip4)) == 1)
7789+
sizeof(clientAddr.ip6)) == 1)
77907790
#elif defined(FREESCALE_MQX)
77917791
if (XINET_PTON(AF_INET6, clientIp, clientAddr.ip6,
77927792
sizeof(clientAddr.ip6)) == RTCS_OK)
@@ -7808,7 +7808,7 @@ int ssl_RemoveSession(const char* clientIp, int clientPort,
78087808
if (serverAddr.ip4 == XINADDR_NONE) {
78097809
#ifdef FUSION_RTOS
78107810
if (XINET_PTON(AF_INET6, serverIp, serverAddr.ip6,
7811-
sizeof(serverAddr.ip4)) == 1)
7811+
sizeof(serverAddr.ip6)) == 1)
78127812
#elif defined(FREESCALE_MQX)
78137813
if (XINET_PTON(AF_INET6, clientIp, clientAddr.ip6,
78147814
sizeof(clientAddr.ip6)) == RTCS_OK)

0 commit comments

Comments
 (0)