Stefano Garzarella <sgarz...@redhat.com> writes:

> If 'ipv6-prefixlen' is not a number, the current behaviour
> produces an assertion failure:
>     $ qemu-system-x86_64 -net user,ipv6-net=feca::0/a
>     qemu-system-x86_64: qemu/util/qemu-option.c:1175: qemu_opts_foreach:
>     Assertion `!errp || !*errp' failed.
>     Aborted (core dumped)
>
> This patch fixes it, jumping to the end of the function when
> 'ipv6-prefixlen' is not a number, and printing the more friendly
> message:
>     $ qemu-system-x86_64 -net user,ipv6-net=feca::0/a
>     qemu-system-x86_64: Parameter 'ipv6-prefixlen' expects a number
>
> Signed-off-by: Stefano Garzarella <sgarz...@redhat.com>

Reviewed-by: Markus Armbruster <arm...@redhat.com>

Reply via email to