fix handling of GRED DPs args
This commit is contained in:
parent
5a2044782b
commit
1558971d43
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue