Skip to content

Commit

Permalink
proto_ws: proper clen print
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Mar 30, 2015
1 parent 5883393 commit 4c5e226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_ws/ws.c
Expand Up @@ -335,7 +335,7 @@ enum ws_close_code inline ws_parse(struct ws_req *req)
clen = WS_ELENC(req);
if ((clen+WS_MIN_HDR_LEN+WS_ELENC_SIZE+WS_IF_MASK_SIZE(req))>
TCP_BUF_SIZE) {
LM_ERR("packet too large, can't fit: %u\n", req->tcp.content_len);
LM_ERR("packet too large, can't fit: %lu\n", clen);
req->tcp.error = TCP_REQ_OVERRUN;
return WS_ERR_TOO_BIG;
}
Expand Down

0 comments on commit 4c5e226

Please sign in to comment.