summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-22 18:56:50 +0200
committerdefault <nobody@localhost>2022-09-22 18:56:50 +0200
commit51dc99a86d3b10b5bcea52346f1e912daabe3c76 (patch)
tree61f6be42cc868856f9521457ecf3e10631f9fd97 /data.c
parent5803b928b5a7ad2b4a75cdcc7e297f0acd1db685 (diff)
Return 110 "Response Is Stale" to stale actors.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/data.c b/data.c
index 72bb3ac..878a2c5 100644
--- a/data.c
+++ b/data.c
@@ -686,13 +686,14 @@ int actor_get(snac *snac, char *actor, d_char **data)
if (t + max_time < (float) time(NULL)) {
/* actor data exists but also stinks */
- status = 202;
if ((f = fopen(fn, "a")) != NULL) {
/* write a blank at the end to 'touch' the file */
fwrite(" ", 1, 1, f);
fclose(f);
}
+
+ status = 110; /* "Response Is Stale" */
}
else {
/* it's still valid */