]> git.ipfire.org Git - thirdparty/qemu.git/commit
spice: abort on invalid streaming cmdline params
authorChristophe Fergeau <cfergeau@redhat.com>
Mon, 13 Aug 2012 08:32:32 +0000 (10:32 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:58:28 +0000 (01:58 -0500)
commit3c82758f04af24d3f642c0b808689d0cb26840aa
tree54b54371058569fcb97b014ef68bf57d03b7d59f
parent7fd494086b2bbc83595ea7d63ca0e54f2917c203
spice: abort on invalid streaming cmdline params

When parsing its command line parameters, spice aborts when it
finds unexpected values, except for the 'streaming-video' option.
This happens because the parsing of the parameters for this option
is done using the 'name2enum' helper, which does not error out
on unknown values. Using the 'parse_name' helper makes sure we
error out in this case. Looking at git history, the use of
'name2enum' instead of 'parse_name' seems to have been an oversight,
so let's change to that now.

Fixes rhbz#831708

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 835cab85ad83ed8dfe1c13243aeda5959b153e3e)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/spice-core.c