summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-12-26 14:55:41 +0100
committerPatrick McHardy <kaber@trash.net>2015-01-10 15:03:59 +0000
commit226b6ab5bd89bd143f5e6c11253c3d98ce5449a3 (patch)
tree9b5e2b0b1dd5d15686b5665ba2c890718096e0a5 /src/rule.c
parent068e138a8d9eb967734340c47de53d8b78833ddc (diff)
netlink_delinearize: fix error handling for invalid registers
netlink_delinearize is prepared to deal with malformed expressions from the kernel that it doesn't understand. However since expressions are now cloned unconditionally by netlink_get_register(), we crash before such errors can be detected for invalid inputs. Fix by only cloning non-NULL expressions. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/rule.c')
0 files changed, 0 insertions, 0 deletions