git.ucc.asn.au
/
matches
/
MCTX3420.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f783577
)
Ensure control key is not empty before checking for equality.
author
Jeremy Tan
<
[email protected]
>
Thu, 3 Oct 2013 14:48:07 +0000
(22:48 +0800)
committer
Jeremy Tan
<
[email protected]
>
Thu, 3 Oct 2013 14:48:07 +0000
(22:48 +0800)
server/fastcgi.c
patch
|
blob
|
history
diff --git
a/server/fastcgi.c
b/server/fastcgi.c
index
41def56
..
f6bea43
100644
(file)
--- a/
server/fastcgi.c
+++ b/
server/fastcgi.c
@@
-116,7
+116,8
@@
void FCGI_LockControl(FCGIContext *context, bool force) {
bool FCGI_HasControl(FCGIContext *context, const char *key) {
time_t now = time(NULL);
int result = (now - context->control_timestamp) <= CONTROL_TIMEOUT &&
- key != NULL && !strcmp(context->control_key, key);
+ key != NULL && context->control_key[0] != '\0' &&
+ !strcmp(context->control_key, key);
if (result) {
context->control_timestamp = now; //Update the control_timestamp
}
UCC
git Repository :: git.ucc.asn.au