git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5105c1b
)
fixed active shares display
author
Andrew Tridgell
<tridge@samba.org>
Mon, 3 Jan 2000 00:32:14 +0000
(
00:32
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 3 Jan 2000 00:32:14 +0000
(
00:32
+0000)
(This used to be commit
b87d1442db86165d983007dd58647c88ac702abf
)
source3/web/statuspage.c
patch
|
blob
|
history
diff --git
a/source3/web/statuspage.c
b/source3/web/statuspage.c
index eaf3fdb86489ad582ddb3ba4d469cb2fe8bd3204..359db5c80a3e270842cd68c1f55272076b75eb53 100644
(file)
--- 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");