Commit 70b7c5d2c6e73abd08497c8b13ae5972c88ac193

Authored by Shoichi Sakane
Committed by Stéphane Raimbault
1 parent 28e1645d

Fix "wildcard address" in TCP IPv6

Showing 1 changed file with 1 additions and 1 deletions
src/modbus-tcp.c
... ... @@ -854,7 +854,7 @@ modbus_t* modbus_new_tcp_pi(const char *node, const char *service)
854 854  
855 855 if (node == NULL) {
856 856 /* The node argument can be empty to indicate any hosts */
857   - ctx_tcp_pi->node[0] = '0';
  857 + ctx_tcp_pi->node[0] = 0;
858 858 } else {
859 859 dest_size = sizeof(char) * _MODBUS_TCP_PI_NODE_LENGTH;
860 860 ret_size = strlcpy(ctx_tcp_pi->node, node, dest_size);
... ...