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 | b87d1442db86165d983007dd58647c88ac702abf (patch) | |
tree | f51764f061a14c0827fe023ebb58c6414e0542ef /source/web | |
parent | d5ceb2972b65c261cfb04b6dcccb3ace9f2238a7 (diff) | |
download | samba-b87d1442db86165d983007dd58647c88ac702abf.tar.gz samba-b87d1442db86165d983007dd58647c88ac702abf.tar.xz samba-b87d1442db86165d983007dd58647c88ac702abf.zip |
fixed active shares display
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/statuspage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/web/statuspage.c b/source/web/statuspage.c index eaf3fdb8648..359db5c80a3 100644 --- a/source/web/statuspage.c +++ b/source/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"); |