remote_internal.c: fix typo that would mistakenly report OOM

* src/remote_internal.c (addrToString): Report VIR_ERR_UNKNOWN_HOST,
not VIR_ERR_NO_MEMORY.
This commit is contained in:
Jim Meyering 2009-01-28 16:14:24 +00:00
parent 8cc2bbe33c
commit e730de6fd8
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,9 @@
Wed Jan 28 15:45:11 +0100 2009 Jim Meyering <meyering@redhat.com>
remote_internal.c: fix typo that would mistakenly report OOM
* src/remote_internal.c (addrToString): Report VIR_ERR_UNKNOWN_HOST,
not VIR_ERR_NO_MEMORY.
Wed Jan 28 15:45:11 +0100 2009 Jim Meyering <meyering@redhat.com>
qparams.c: Use virReportOOMError(NULL), not qparam_report_oom()

View File

@ -2,7 +2,7 @@
* remote_internal.c: driver to provide access to libvirtd running
* on a remote machine
*
* Copyright (C) 2007-2008 Red Hat, Inc.
* Copyright (C) 2007-2009 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -4949,10 +4949,10 @@ static char *addrToString(struct sockaddr_storage *sa, socklen_t salen)
port, sizeof(port),
NI_NUMERICHOST | NI_NUMERICSERV)) != 0) {
virRaiseError (NULL, NULL, NULL, VIR_FROM_REMOTE,
VIR_ERR_NO_MEMORY, VIR_ERR_ERROR,
NULL, NULL, NULL, 0, 0,
_("Cannot resolve address %d: %s"),
err, gai_strerror(err));
VIR_ERR_UNKNOWN_HOST, VIR_ERR_ERROR,
NULL, NULL, NULL, 0, 0,
_("Cannot resolve address %d: %s"),
err, gai_strerror(err));
return NULL;
}
@ -6836,4 +6836,3 @@ remoteRegister (void)
return 0;
}