]> git.proxmox.com Git - qemu.git/commit
slirp: Fix error reported by static code analysis
authorStefan Weil <sw@weilnetz.de>
Tue, 4 Sep 2012 21:20:36 +0000 (23:20 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:17 +0000 (21:44 -0500)
commit6116adbc0e22c92015220591594df14d776cf5f6
treec19b605d8e88ed277db17884973027106e055261
parent3ed791b42d75f20dc194f9355121c55ee3ac4444
slirp: Fix error reported by static code analysis

Report from smatch:

slirp/tcp_subr.c:127 tcp_respond(17) error:
 we previously assumed 'tp' could be null (see line 124)

Return if 'tp' is NULL.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
(cherry picked from commit e56afbc54a2132c56931f44bae1992c28119944f)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
slirp/tcp_subr.c