]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: avoid NULL pointer dereference in route_add
authorMichael Chapman <mike@very.puzzling.org>
Tue, 16 Aug 2016 09:07:42 +0000 (19:07 +1000)
committerMichael Chapman <mike@very.puzzling.org>
Tue, 16 Aug 2016 09:07:42 +0000 (19:07 +1000)
commit856e309d7b18cabe18c845bdf57e92958343a9ec
tree27264904693ca22921b18e54b5ddce261030b3a1
parent5f9a610ad2b3200a31bbd9181c810726eeb30385
networkd: avoid NULL pointer dereference in route_add

If no result parameter is provided, do not attempt to write the
found/newly-created route to it. This is presently not an issue as all
callers currently provide a non-NULL result parameter, however we should
do this for symmetry with address_add and future code robustness.
src/network/networkd-route.c