check for default protocol rx buf limit 98/3098/1
authorAndy Green <andy.green@linaro.org>
Thu, 14 Feb 2013 02:18:31 +0000 (10:18 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:35 +0000 (13:01 -0800)
commitfce9d8100d53a5b52eb9fd3019070a65b9733983
tree288e5a003157a43f99e471a485ba3a0d4e90f2e3
parentc72854ae9a3bd4da320895867fff5de48adf2e07
check for default protocol rx buf limit

This fixes

http://libwebsockets.org/trac/ticket/13

When using the default rx protocol buffer, the check is
performed against 0 not the default length.  That's the
case both in client and server code...

There's no problem if you actually give a max frame size
in the protocol definition.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-parser.c