git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regex/mlx5: support dequeue
[dpdk.git]
/
app
/
test-fib
/
main.c
diff --git
a/app/test-fib/main.c
b/app/test-fib/main.c
index
6e80d65
..
9cf01b1
100644
(file)
--- a/
app/test-fib/main.c
+++ b/
app/test-fib/main.c
@@
-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;