]> git.itanic.dy.fi Git - rrdd/commit
netstats_parser: Fix crash when network device names are undefined
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 20 Jun 2012 19:19:25 +0000 (22:19 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 20 Jun 2012 19:19:25 +0000 (22:19 +0300)
commit59cef4256f3002ae3dc4f5e60b160210d4d33b26
tree42d01b9eeae672c1f4f51da71e455e35111a85bc
parentd1e19621a44f04bdd8114514e1caf99a8f899550
netstats_parser: Fix crash when network device names are undefined

There is absolutely nothing this parser can do without the network
names. If the pointer happens to be zero, all we can do is to bail out
with a error print. Not handling this situation will lead to a crash.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
parser.c