From 98b1c568af7ed5f738b92a7aae1826856d638046 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Jan 2000 00:32:14 +0000 Subject: fixed active shares display (This used to be commit b87d1442db86165d983007dd58647c88ac702abf) --- source3/web/statuspage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c index eaf3fdb864..359db5c80a 100644 --- a/source3/web/statuspage.c +++ b/source3/web/statuspage.c @@ -114,7 +114,7 @@ static int traverse_fn3(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf) struct connections_data crec; memcpy(&crec, dbuf.dptr, sizeof(crec)); - if (crec.cnum != -1 || !process_exists(crec.pid)) return 0; + if (crec.cnum == -1 || !process_exists(crec.pid)) return 0; printf("%s%s%s%d%s%s\n", crec.name,uidtoname(crec.uid), @@ -260,7 +260,7 @@ void status_page(void) locking_end(); printf("\n"); - tdb_close(tdb); + if (tdb) tdb_close(tdb); printf("\n"); -- cgit