]> git.proxmox.com Git - mirror_ovs.git/commit
jsonrpc: Don't assert for 0 remotes in jsonrpc_session_open_multiple().
authorBen Pfaff <blp@ovn.org>
Fri, 26 Jun 2020 19:46:10 +0000 (12:46 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 29 Jun 2020 17:38:58 +0000 (10:38 -0700)
commitf740828d82234ccd026fcbc9a49d230d72667330
treefbc90474645a77d29047bf4acb337bd57325ec8c
parent7d68168468b1f862953d38010cbf3d1079eaf621
jsonrpc: Don't assert for 0 remotes in jsonrpc_session_open_multiple().

It's pretty easy to get 0 remotes here from ovn-northd if you specify
--ovnnb-db='' or --ovnnb-db='   ' on the command line.  The internals
of jsonrpc_session aren't equipped to cope with that, so just add a
dummy remote instead.

Acked-by: Numan Siddique <numans@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/jsonrpc.c