Code

frontend: Fixed hostname in error messages in FETCH.
authorSebastian Harl <sh@tokkee.org>
Wed, 25 Feb 2015 09:40:10 +0000 (10:40 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 25 Feb 2015 09:40:10 +0000 (10:40 +0100)
src/frontend/query.c

index 2bd234a07c91088ac8f8db4706acd1c42f2896e1..aef0ddcc6d7112300f6d1aca90fbd42062b43650 100644 (file)
@@ -312,6 +312,8 @@ sdb_fe_exec_fetch(sdb_conn_t *conn, int type,
                                SDB_STORE_TYPE_TO_NAME(type), hostname, name);
                return -1;
        }
+       if (type == SDB_HOST)
+               name = hostname;
 
        host = sdb_store_get_host(hostname);
        if ((! host) || (filter