Эх сурвалжийг харах

Fix "wildcard address" in TCP IPv6

Shoichi Sakane 9 жил өмнө
parent
commit
70b7c5d2c6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/modbus-tcp.c

+ 1 - 1
src/modbus-tcp.c

@@ -854,7 +854,7 @@ modbus_t* modbus_new_tcp_pi(const char *node, const char *service)
 
     if (node == NULL) {
         /* The node argument can be empty to indicate any hosts */
-        ctx_tcp_pi->node[0] = '0';
+        ctx_tcp_pi->node[0] = 0;
     } else {
         dest_size = sizeof(char) * _MODBUS_TCP_PI_NODE_LENGTH;
         ret_size = strlcpy(ctx_tcp_pi->node, node, dest_size);