fix handling of GRED DPs args

This commit is contained in:
Stephen Hemminger 2009-05-26 15:58:05 -07:00
parent 5a2044782b
commit 1558971d43
1 changed files with 1 additions and 1 deletions

View File

@ -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;