diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-03 00:32:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-03 00:32:14 +0000 |
commit | 98b1c568af7ed5f738b92a7aae1826856d638046 (patch) | |
tree | 1c96bd6428ebe9aac2cdf8103fcd87f0982e391d /source3/web/statuspage.c | |
parent | 5105c1b4506c35371d7cb0e9e5ac55fe4a6a53af (diff) | |
download | samba-98b1c568af7ed5f738b92a7aae1826856d638046.tar.gz samba-98b1c568af7ed5f738b92a7aae1826856d638046.tar.xz samba-98b1c568af7ed5f738b92a7aae1826856d638046.zip |
fixed active shares display
(This used to be commit b87d1442db86165d983007dd58647c88ac702abf)
Diffstat (limited to 'source3/web/statuspage.c')
-rw-r--r-- | source3/web/statuspage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c index eaf3fdb8648..359db5c80a3 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("<tr><td>%s</td><td>%s</td><td>%s</td><td>%d</td><td>%s</td><td>%s</td></tr>\n", crec.name,uidtoname(crec.uid), @@ -260,7 +260,7 @@ void status_page(void) locking_end(); printf("</table>\n"); - tdb_close(tdb); + if (tdb) tdb_close(tdb); printf("</FORM>\n"); |