ovsdb: Fix bug in JSON-RPC server.
authorJeremy Stribling <strib@nicira.com>
Fri, 6 Nov 2009 18:54:16 +0000 (10:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Nov 2009 18:55:37 +0000 (10:55 -0800)
ovsdb/jsonrpc-server.c

index 36c9a7a2679a880dd76a746b8d1b58297b5da48c..f6770640df5fb48338eabb40aed33ef59b32a4ed 100644 (file)
@@ -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]);
         }
     }