Skip to content

Commit 12c4a16

Browse files
committed
- CS104 slave: initialize memory for statically allocate IP address structure
1 parent e29c04d commit 12c4a16

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib60870-C/src/iec60870/cs104/cs104_slave.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3927,6 +3927,7 @@ static CS104_RedundancyGroup
39273927
getMatchingRedundancyGroup(CS104_Slave self, char* ipAddrStr)
39283928
{
39293929
struct sCS104_IPAddress ipAddress;
3930+
memset(&ipAddress, 0, sizeof(struct sCS104_IPAddress));
39303931

39313932
CS104_IPAddress_setFromString(&ipAddress, ipAddrStr);
39323933

0 commit comments

Comments
 (0)