commit | 45c2ec9e95fef8eb6f0807d9a7e5f14c14313c7e | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Thu Aug 24 11:51:45 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Thu Aug 24 14:53:14 2017 -0700 |
tree | 130fdc60384279998337a414bae64ac9991749b1 | |
parent | 70a6df3962b8448fc9c28d72606828a004ed5b6b [diff] |
ipntable: Avoid memory allocation for filter.name The original issue was that filter.name might end up unterminated if user provided string was too long. But in fact it is not necessary to copy the commandline parameter at all: just make filter.name point to it instead. Signed-off-by: Phil Sutter <phil@nwl.cc>