diff --git a/src/viced/host.c b/src/viced/host.c index 9476f9854e..3b408e88e2 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1558,6 +1558,7 @@ h_GetHost_r(struct rx_connection *tcon) host->interface ? uuid2 : "")); /* The host in the cache is not the host for this connection */ + h_Lock_r(host); host->hostFlags |= HOSTDELETED; host->hostFlags &= ~HWHO_INPROGRESS; h_Unlock_r(host);