/*
- * $Id: http_command.c,v 1.7 2007-01-06 04:54:58 quinn Exp $
+ * $Id: http_command.c,v 1.8 2007-01-06 05:32:23 quinn Exp $
*/
#include <stdio.h>
int len;
int i;
char *name = http_argbyname(rq, "name");
- int status = session_active_clients(s->psession);
+ int status;
if (!s)
return;
+ status = session_active_clients(s->psession);
+
if (!name)
name = "subject";
if (strlen(name) > 255)
struct http_response *rs = c->response;
struct http_session *s = locate_session(rq, rs);
char *block = http_argbyname(rq, "block");
- int status = session_active_clients(s->psession);
+ int status;
if (!s)
return;
+ status = session_active_clients(s->psession);
+
if (block)
{
if (status && (!s->psession->reclist || !s->psession->reclist->num_records))
struct http_response *rs = c->response;
struct http_session *s = locate_session(rq, rs);
struct statistics stat;
- int clients = session_active_clients(s->psession);
+ int clients;
if (!s)
return;
+ clients = session_active_clients(s->psession);
statistics(s->psession, &stat);
wrbuf_rewind(c->wrbuf);