slirp: Fix error reported by static code analysis
authorStefan Weil <sw@weilnetz.de>
Tue, 4 Sep 2012 21:20:36 +0000 (23:20 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 13 Sep 2012 10:38:14 +0000 (12:38 +0200)
commite56afbc54a2132c56931f44bae1992c28119944f
tree273ecb5aa08426332d4a7626b8dc9a179307fc8a
parentc4d12a743c73a5b88a8705ca68ff620ce0f8bba7
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>
slirp/tcp_subr.c