Message ID | 0160acc9af83740242aa6e773e117e1b05753474.1460557066.git.crobinso@redhat.com |
---|---|
State | Accepted |
Commit | 9b69f02243f2abec4170576dfe28f8a4bb398b4e |
Headers | show |
diff --git a/src/rpc/virnetdaemon.c b/src/rpc/virnetdaemon.c index c99914d..dcc89fa 100644 --- a/src/rpc/virnetdaemon.c +++ b/src/rpc/virnetdaemon.c @@ -293,6 +293,10 @@ virNetDaemonAddServerPostExec(virNetDaemonPtr dmn, goto error; } + if (virJSONValueObjectKeysNumber(dmn->srvObject) == 0) { + virJSONValueFree(dmn->srvObject); + dmn->srvObject = NULL; + } } srv = virNetServerNewPostExecRestart(object,