<div dir="ltr">ack<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 2:20 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We need to make sure we have a buffer big enough to accomodate the data<br>
sent by the coming SASL step.<br>
---<br>
server/reds_stream.c | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/server/reds_stream.c b/server/reds_stream.c<br>
index 8476066..0b06771 100644<br>
--- a/server/reds_stream.c<br>
+++ b/server/reds_stream.c<br>
@@ -756,6 +756,7 @@ RedsSaslError reds_sasl_handle_auth_steplen(RedsStream *stream, AsyncReadDone re<br>
* treatment */<br>
return REDS_SASL_ERROR_OK;<br>
} else {<br>
+ sasl->data = spice_realloc(sasl->data, sasl->len);<br>
reds_stream_async_read(stream, (uint8_t *)sasl->data, sasl->len,<br>
read_cb, opaque);<br>
return REDS_SASL_ERROR_OK;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.3<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau
</div>