net: Fix -net socket parameter checks
authorJan Kiszka <jan.kiszka@web.de>
Sun, 26 Apr 2009 16:53:42 +0000 (18:53 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 14:44:11 +0000 (09:44 -0500)
commit23b034fcdb1a670ef4930b07ea060687431b5205
treeb16e3325d46f5a1637da46343e0772c09ebf4100
parente76307676d8593bdea9f3850b43a07d8c247d27f
net: Fix -net socket parameter checks

My commit ea053add700d8abe203cd79a9ffb082aee4eabc0 broke -net socket by
overwriting an intermediate buffer in the added check_param. Fix this
by switching check_param to automatic buffer allocation and release, ie.
callers no longer have to worry about providing a scratch buffer.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
sysemu.h
vl.c