X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ffrontend%2Fquery.c;h=aef0ddcc6d7112300f6d1aca90fbd42062b43650;hp=2bd234a07c91088ac8f8db4706acd1c42f2896e1;hb=20155f4dc6bbb49695ded1d12041d044d48be6f3;hpb=e3dd1869ac2397272179eb1f0229175a27dc7b06 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