]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: Make getaddrinfo failure nonfatal in virGetHostname
authorJiri Denemark <jdenemar@redhat.com>
Thu, 13 Oct 2011 14:19:37 +0000 (16:19 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 13 Oct 2011 20:05:35 +0000 (22:05 +0200)
commitf1409fa7c61e880c7b88665c3109985f7bd63b7f
tree13072a24a5cf3ca341f17e6a45727d195acc9270
parentbf7676af30a4b6942d78522497b568526fa6c2f3
util: Make getaddrinfo failure nonfatal in virGetHostname

Setting a hostname that cannot be resolved is not the best configuration
but since virGetHostname only calls getaddrinfo to get host's canonical
name and we do not fail if the returned canonical name is NULL or
"localhost", there is no reason why we should fail if getaddrinfo itself
fails.
src/util/util.c