xinu-os / xinu

Repository for Xinu source code
http://xinu-os.org/
Other
430 stars 128 forks source link

xsh_route.c #7

Open cycl0ne opened 8 years ago

cycl0ne commented 8 years ago

Another "bug" in xsh_route.c:

        /* Parse destination */
        if (strcmp(args[2], "default") == 0)
        {
            args[2] = "";
        }
        if (SYSERR == dot2ipv4(args[2], &dst))
        {
            fprintf(stderr, "%s is not a valid IPv4 address.\n", args[2]);
            return SYSERR;
        }

dot2ipv4 doesnt take "". it this on purpose?