]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen: fix parsing xend http response
authorJim Fehlig <jfehlig@suse.com>
Wed, 29 Jan 2014 01:15:48 +0000 (18:15 -0700)
committerJim Fehlig <jfehlig@suse.com>
Wed, 29 Jan 2014 01:32:49 +0000 (18:32 -0700)
commit37564b471da7e9080284149f8350241afd448515
tree962fb79a695849eb444cee16523daf11cd44022a
parent7e4dcf3a47a4fea8534531cf0a4bee7bb85904be
xen: fix parsing xend http response

Commit df36af58 broke parsing of http response from xend.  The prior
use of atoi() would happily parse e.g. a string containing "200 OK\r\n",
whereas virStrToLong_i() will fail when called with a NULL end_ptr.
Change the calls to virStrToLong_i() to provide a non-NULL end_ptr.
src/xen/xend_internal.c