simple patch for trunk
Torsten Foertsch
torsten.foertsch at gmx.net
Sat Apr 8 18:49:21 UTC 2006
otherwise r->rcurr can point to freed memory.
--- memcached.c (revision 258)
+++ memcached.c (working copy)
@@ -949,7 +949,7 @@
c->write_and_go = conn_closing;
return 1;
}
- c->rbuf = new_rbuf; c->rsize *= 2;
+ c->rcurr = c->rbuf = new_rbuf; c->rsize *= 2;
}
res = read(c->sfd, c->rbuf + c->rbytes, c->rsize - c->rbytes);
if (res > 0) {
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20060408/5028d3eb/attachment.pgp
More information about the memcached
mailing list