]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote_internal.c: fix typo that would mistakenly report OOM
authorJim Meyering <meyering@redhat.com>
Wed, 28 Jan 2009 16:14:24 +0000 (16:14 +0000)
committerJim Meyering <meyering@redhat.com>
Wed, 28 Jan 2009 16:14:24 +0000 (16:14 +0000)
* src/remote_internal.c (addrToString): Report VIR_ERR_UNKNOWN_HOST,
not VIR_ERR_NO_MEMORY.

ChangeLog
src/remote_internal.c

index ddcbb2e67108b0190db54da75c582de639261839..02af6fc55440ce8ba0894500a93d7eb87fd882af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
index 93b27afffea949036b6ed09f15af151aaa8798a0..6f6eb744c22e8dfde18b7549237f43a0f2364922 100644 (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;
 }
-