]> git.droids-corp.org - dpdk.git/blobdiff - app/test-fib/main.c
regex/mlx5: support dequeue
[dpdk.git] / app / test-fib / main.c
index 6e80d65f4c139ba01f080859442c819ab957d8cb..9cf01b16e5a2f89444fac06ec27ad26942c8eb74 100644 (file)
@@ -543,6 +543,8 @@ parse_lookup(FILE *f, int af)
 
        while (fgets(line, sizeof(line), f) != NULL) {
                s = strtok(line, " \t\n");
+               if (s == NULL)
+                       return -EINVAL;
                ret = inet_pton(af, s, &tbl[i]);
                if (ret != 1)
                        return -EINVAL;