]> git.ipfire.org Git - thirdparty/qemu.git/commit
l2tpv3: fix possible double free
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Fri, 14 Nov 2014 01:39:23 +0000 (09:39 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 20:45:28 +0000 (14:45 -0600)
commit05c5febf8cfe4e6f11a2c5147e13443ce3e9ba52
tree388985466e34adbd5505eb98cf42dd7db461455a
parentde98dc9539e31b8f986e5d7aad22988beecc2028
l2tpv3: fix possible double free

freeaddrinfo(result) does not assign result = NULL, after frees it.
There will be a double free when it goes error case.
It is reported by covertiy.

Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 77374582ab961af2c5e702f767f52179d5f7676c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/l2tpv3.c