Changeset: ad86caef0b26 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ad86caef0b26
Modified Files:
        tools/merovingian/daemon/merovingian.c
Branch: Oct2020
Log Message:

Look at the whole name, not just the beginning.


diffs (20 lines):

diff --git a/tools/merovingian/daemon/merovingian.c 
b/tools/merovingian/daemon/merovingian.c
--- a/tools/merovingian/daemon/merovingian.c
+++ b/tools/merovingian/daemon/merovingian.c
@@ -655,14 +655,9 @@ main(int argc, char *argv[])
        }
        host = kv->val;
 
-       if (strncmp(host, "127.0.0.1", strlen("127.0.0.1")) == 0 ||
-               strncmp(host, "0.0.0.0", strlen("0.0.0.0")) == 0) {
-               use_ipv6 = false;
-       } else {
-               use_ipv6 = true;
-       }
+       use_ipv6 = (strcmp(host, "127.0.0.1") != 0 && strcmp(host, "0.0.0.0") 
!= 0);
 
-       if (strncmp(host, "all", strlen("all")) == 0) {
+       if (strcmp(host, "all") == 0) {
                host = NULL;
        }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to