From: Sebastian Harl Date: Wed, 25 Feb 2015 09:40:10 +0000 (+0100) Subject: frontend: Fixed hostname in error messages in FETCH. X-Git-Tag: sysdb-0.8.0~165 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20155f4dc6bbb49695ded1d12041d044d48be6f3;p=sysdb.git frontend: Fixed hostname in error messages in FETCH. --- diff --git a/src/frontend/query.c b/src/frontend/query.c index 2bd234a..aef0ddc 100644 --- a/src/frontend/query.c +++ b/src/frontend/query.c @@ -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