summaryrefslogtreecommitdiff
path: root/source3/lib/util_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_status.c')
-rw-r--r--source3/lib/util_status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/util_status.c b/source3/lib/util_status.c
index d635cb08b5..74ffc62c34 100644
--- a/source3/lib/util_status.c
+++ b/source3/lib/util_status.c
@@ -78,7 +78,9 @@ fd = sys_open(fname,O_RDONLY, 0);
}
DEBUG(10,("cnum:%u. pid: %d magic: %x\n",
c->cnum, c->pid, c->magic));
- if ( c->magic == 0x280267 && process_exists(c->pid) )
+
+ /* valid connection, smbd process still going, connection still going */
+ if ( c->magic == 0x280267 && process_exists(c->pid) && c->cnum != -1 )
{
conn++;
}