diff options
author | Dmitry Morozovsky <marck@FreeBSD.org> | 2009-02-23 12:17:08 +0000 |
---|---|---|
committer | Dmitry Morozovsky <marck@FreeBSD.org> | 2009-02-23 12:17:08 +0000 |
commit | 277b37ae5434c34a30f79cfcda4b0dca69c00899 (patch) | |
tree | a609bfbfdd6b2c22d6d175f1e4331239c90ed2aa /net-mgmt/aggregate/files/patch-aggregate.c | |
parent | Update to 1.3.0 (diff) |
Fix simultaneous use of -t and -p options.
While I'm here, get rid of simple pkg-plist, and remove stale distsite.
Also, make portlint -C happy.
PR: 131259
Approved by: maintainer timeout (3 weeks)
Notes
Notes:
svn path=/head/; revision=228892
Diffstat (limited to 'net-mgmt/aggregate/files/patch-aggregate.c')
-rw-r--r-- | net-mgmt/aggregate/files/patch-aggregate.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-mgmt/aggregate/files/patch-aggregate.c b/net-mgmt/aggregate/files/patch-aggregate.c new file mode 100644 index 000000000000..03fddbfbba08 --- /dev/null +++ b/net-mgmt/aggregate/files/patch-aggregate.c @@ -0,0 +1,24 @@ +Index: aggregate.c +=================================================================== +--- aggregate.c (revision 919) ++++ aggregate.c (working copy) +@@ -261,8 +261,18 @@ + moanf(0, "[line %d] line too long; ignoring line", line); + continue; + } ++ if (buf[i] == '/') { ++ masklen = atoi(buf + i + 1); ++ if (masklen < 1 || masklen > max_prefix_length) ++ { ++ if (!quiet) ++ moanf(0, "[line %d] mask length %d out of range; ignoring line", \ ++ line, masklen); ++ continue; ++ } ++ } else ++ masklen = default_prefix_length; + buf[i] = 0; +- masklen = default_prefix_length; + } else { + i = 0; + while (buf[i] != '/' && i < MAX_buf) i++; |