]> xenbits.xensource.com Git - libvirt.git/commit
Allocate buffer to hold xend response
authorJim Fehlig <jfehlig@novell.com>
Thu, 3 Jun 2010 00:07:17 +0000 (18:07 -0600)
committerJim Fehlig <jfehlig@novell.com>
Thu, 3 Jun 2010 18:19:58 +0000 (12:19 -0600)
commit211dd1e9c54a9ba92e2e648acacbc18981374073
tree38daa22a7d28dacaf77549cd4cc7b07e465f3b4b
parent2874a683e91808cd0936d658705fb2f24a1fe247
Allocate buffer to hold xend response

There are cases when a response from xend can exceed 4096 bytes, in
which case anything beyond 4096 is ignored. This patch changes the
current fixed-size, stack-allocated buffer to a dynamically allocated
buffer based on Content-Length in HTTP header.
src/xen/xend_internal.c