diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-03-17 14:10:10 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-04-16 17:11:38 +0200 |
commit | 91a6feb9f4e0c7c179b179f82ff1308ccaf48fdd (patch) | |
tree | 0181cdb360d763114907165816f8e4d3a77ffadd | |
parent | 27f968afd203be51a184a0b18c0f531559ac7a15 (diff) |
Add missing buffer (re)allocation to reds_sasl_handle_auth_steplen()
We need to make sure we have a buffer big enough to accomodate the data
sent by the coming SASL step.
-rw-r--r-- | server/reds_stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/reds_stream.c b/server/reds_stream.c index f598950..4b61e31 100644 --- a/server/reds_stream.c +++ b/server/reds_stream.c @@ -760,6 +760,7 @@ RedsSaslError reds_sasl_handle_auth_steplen(RedsStream *stream, AsyncReadDone re * treatment */ return REDS_SASL_ERROR_OK; } else { + sasl->data = spice_realloc(sasl->data, sasl->len); reds_stream_async_read(stream, (uint8_t *)sasl->data, sasl->len, read_cb, opaque); return REDS_SASL_ERROR_OK; |