Avoid trying to compare more than strlen bytes.
This commit is contained in:
parent
9b8b1a68f0
commit
13e60c55a1
@ -233,7 +233,7 @@ int ProcessRequest(struct httprequest *req)
|
||||
return 1; /* done */
|
||||
}
|
||||
|
||||
if(!strncmp("/quit", ptr, 15)) {
|
||||
if(!strncmp("/quit", ptr, 5)) {
|
||||
logmsg("Request-to-quit received");
|
||||
req->testno = DOCNUMBER_QUIT;
|
||||
return 1; /* done */
|
||||
|
Loading…
x
Reference in New Issue
Block a user