merge
authorMario de Sousa <msousa@fe.up.pt>
Mon, 01 Jun 2020 14:28:49 +0100
changeset 11 7c955a1d39e8
parent 10 1aed7a582ca7 (diff)
parent 5 6e94a1dddc5f (current diff)
child 12 16ea5cbbda4e
child 13 6f6451e78531
merge
mb_slave.c
--- a/mb_tcp.c	Tue Dec 10 09:30:59 2019 +0100
+++ b/mb_tcp.c	Mon Jun 01 14:28:49 2020 +0100
@@ -1517,8 +1517,8 @@
 
   /* Check the parameters we were passed... */
   if(sin_initaddr(&tmp_addr,
-                  node_addr.addr.tcp.host,    0,
-                  node_addr.addr.tcp.service, 0,
+                  node_addr.addr.tcp.host,    1, // 1 => allow host NULL, "" or "*" -> INADDR_ANY
+                  node_addr.addr.tcp.service, 1, // 1 => allow serivce NULL or ""   -> port = 0                  
                   DEF_PROTOCOL)
        < 0) {
 #ifdef ERRMSG