When SSL is enabled, the protocol seems to get zero byte reads which result in a null GWBUF being passed to gwbuf_length.