Skip to content

Commit

Permalink
websocket: proper parameters for rpc response building of ws dump
Browse files Browse the repository at this point in the history
- reported by GH #1022
  • Loading branch information
miconda committed Mar 8, 2017
1 parent 6bd3208 commit 679febf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/websocket/ws_conn.c
Expand Up @@ -623,7 +623,7 @@ void ws_rpc_dump(rpc_t* rpc, void* ctx)
return;
}
if(rpc->struct_add(th, "[{",
"connections", "info", &ih, &dh)<0)
"connections", &ih, "info", &dh)<0)
{
rpc->fault(ctx, 500, "Internal error connections structure");
return;
Expand Down Expand Up @@ -703,8 +703,8 @@ void ws_rpc_dump(rpc_t* rpc, void* ctx)
WSCONN_UNLOCK;

if(rpc->struct_add(dh, "ds",
"wscounter", "truncated",
connections, (truncated==1)?"yes":"no")<0)
"wscounter", connections,
"truncated", (truncated==1)?"yes":"no")<0)
{
rpc->fault(ctx, 500, "Internal error adding info structure");
return;
Expand Down

0 comments on commit 679febf

Please sign in to comment.