]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipntable: Avoid memory allocation for filter.name
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 09:51:45 +0000 (11:51 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 21:53:14 +0000 (14:53 -0700)
commit45c2ec9e95fef8eb6f0807d9a7e5f14c14313c7e
tree130fdc60384279998337a414bae64ac9991749b1
parent70a6df3962b8448fc9c28d72606828a004ed5b6b
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>
ip/ipntable.c