Skip to content

Commit

Permalink
Fix BugReport2006x07x10x111239, thanks:)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelCarpintero authored and AngelCarpintero committed Aug 8, 2006
1 parent be6636b commit ad14d76
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions webhttpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,18 @@ static int detection(char *pointer, char *res, int length_uri, int thread, int c
length_uri = length_uri - 5;
if (length_uri == 0) {
/*call start*/
int i = 0;

cnt[thread]->pause = 0;

if (thread == 0) {
do {
cnt[i]->pause = 0;
} while (cnt[++i]);
} else {
cnt[thread]->pause = 0;
}

if (cnt[0]->conf.control_html_output) {
send_template_ini_client(client_socket,ini_template);
sprintf(res,"Thread %i Detection resumed<br>\n"
Expand All @@ -954,7 +965,18 @@ static int detection(char *pointer, char *res, int length_uri, int thread, int c
length_uri = length_uri - 5;
if (length_uri==0) {
/*call pause*/
int i = 0;

cnt[thread]->pause=1;

if (thread == 0) {
do {
cnt[i]->pause = 1;
} while (cnt[++i]);
} else {
cnt[thread]->pause = 1;
}

if (cnt[0]->conf.control_html_output) {
send_template_ini_client(client_socket, ini_template);
sprintf(res,"Thread %i Detection paused<br>\n"
Expand Down

0 comments on commit ad14d76

Please sign in to comment.