mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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:
parent
8cc2bbe33c
commit
e730de6fd8
@ -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()
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user