Commit 1558971d authored by Stephen Hemminger's avatar Stephen Hemminger

fix handling of GRED DPs args

parent 5a204478
......@@ -73,7 +73,7 @@ static int init_gred(struct qdisc_util *qu, int argc, char **argv,
} else if (strcmp(*argv, "default") == 0) {
NEXT_ARG();
def_dp = strtol(*argv, (char **)NULL, 10);
if (dps) {
if (dps == 0) {
fprintf(stderr, "\"default DP\" must be "
"defined after DPs\n");
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment