From: Jeremy Stribling Date: Fri, 6 Nov 2009 18:54:16 +0000 (-0800) Subject: ovsdb: Fix bug in JSON-RPC server. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc268c788e287da920a90e287339d3eac1f05a5e;p=openvswitch ovsdb: Fix bug in JSON-RPC server. --- diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index 36c9a7a2..f6770640 100644 --- a/ovsdb/jsonrpc-server.c +++ b/ovsdb/jsonrpc-server.c @@ -186,7 +186,7 @@ ovsdb_jsonrpc_server_wait(struct ovsdb_jsonrpc_server *svr) if (svr->n_sessions < svr->max_sessions) { size_t i; - for (i = 0; i < svr->n_sessions; i++) { + for (i = 0; i < svr->n_listeners; i++) { pstream_wait(svr->listeners[i]); } }