From 2e3678c8829761506b9179d3660448c9ae21942b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 17 Jan 2003 07:39:28 +0000 Subject: [PATCH] viced-getclient-assert-logging-20030117 log some more info before asserting --- src/viced/host.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/viced/host.c b/src/viced/host.c index 2c613f07e..c70deac38 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1426,8 +1426,15 @@ int GetClient(struct rx_connection * tcon, struct client **cp) H_LOCK *cp = client = (struct client *) rx_GetSpecific(tcon, rxcon_client_key); - /* XXXX debug */ - assert(client && client->tcon && rxr_CidOf(client->tcon) == client->sid); + if (!(client && client->tcon && rxr_CidOf(client->tcon) == client->sid)) { + if (!client) + ViceLog(0, ("GetClient: no client in conn %x\n", tcon)); + else + ViceLog(0, ("GetClient: tcon %x tcon sid %d client sid %d\n", + client->tcon, client->tcon ? rxr_CidOf(client->tcon) + : -1, client->sid)); + assert(0); + } if (client && client->LastCall > client->expTime && client->expTime) { char hoststr[16]; -- 2.39.5