tap: fix the crash 82/18882/2
authorMohsin Kazmi <sykazmi@cisco.com>
Mon, 15 Apr 2019 11:17:55 +0000 (13:17 +0200)
committerDave Barach <openvpp@barachs.net>
Mon, 15 Apr 2019 12:56:11 +0000 (12:56 +0000)
commit2a6861ff7bc90c1518b68459210830052774d429
treeb75bc3302f6fdeb14bb104bafdf1af35349b7457
parentd0d6b942e954b5e26d04ba830ec1fe5fa1f4d4b6
tap: fix the crash

Crash will happen when someone will try to setup a tap interface
in host namespace without providing the host side of tap interface
custom name. This patch fixes the problem by using the default name
in this case.

Change-Id: Ic1eaea5abd01bc6c766d0e0fcacae29ab7a7ec45
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/tap/tap.c