]> git.ipfire.org Git - thirdparty/qemu.git/commit
l2tpv3: fix fd leak
authorGonglei <arei.gonglei@huawei.com>
Sat, 15 Nov 2014 10:06:40 +0000 (18:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2014 10:40:36 +0000 (11:40 +0100)
commitd4754a953196516b16beef707dcdfdb35c2eec6e
tree705910aa59e3ef3a806cd5cd11472e2f09cf51bb
parent77374582ab961af2c5e702f767f52179d5f7676c
l2tpv3: fix fd leak

In this false branch, fd will leak when it is zero.
Change the testing condition.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
[Fix net_l2tpv3_cleanup as well. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net/l2tpv3.c