]> git.ipfire.org Git - thirdparty/lxc.git/commit
fix core dump when using physical interface
authorDaniel Lezcano <daniel.lezcano@free.fr>
Fri, 23 Jul 2010 13:10:38 +0000 (15:10 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 23 Jul 2010 13:10:38 +0000 (15:10 +0200)
commit6168e99ffffd5e04aaff9981803d0c04cc682b6a
treed08b579c529be2858a571d0974d8e9f7fc70e7a3
parent7ef6e4407307b3712218e68d71090e60a2fb0815
fix core dump when using physical interface

If the physical link is not specified in the configuration
the check in if_nametoindex(netdev->link) leads to a segfault.

Check the link is specified.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Reported-by: Ferenc Wagner <wferi@niif.hu>
src/lxc/conf.c