]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetServerNewPostExecRestart: Initialize @max_anonymous_clients
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Mar 2014 10:04:27 +0000 (11:04 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Mar 2014 13:49:56 +0000 (14:49 +0100)
commit1a8d91d922cea30f87165b01d524af1d4ddf8da1
tree656d1275486ce0f444a4aca01f84bfd7b2a02f27
parent149733821d4a9cfc6c4ec55cfd90ddab163a1cfe
virNetServerNewPostExecRestart: Initialize @max_anonymous_clients

Coverity spotted a use of possibly undefined variable. If a server is
restarting as an result of update, the JSON file that keeps current
value of some variables will not contain the new variables. This is
the case of @max_anonymous_clients too. We are correctly querying if
there's "max_anonymous_clients" in the JSON, however, we are not
setting a sane default if there's none.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/virnetserver.c