about summary refs log tree commit diff
path: root/src/http.go
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2019-10-06 15:53:20 +0200
committermaride <maride@darknebu.la>2019-10-06 15:53:20 +0200
commite4637ddf366231de52c05d0092ff8ea8583a1601 (patch)
tree6b3af05c91e6a36d3a206d9ef39c0a276520a4aa /src/http.go
parent364a18c1f138811e1eba77be5514e458ef2e21a4 (diff)
Correctly deliver timestamp and not bool; fix 'flagTries' raise problem
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.go b/src/http.go
index 6ad5b5e..6feeb33 100644
--- a/src/http.go
+++ b/src/http.go
@@ -236,7 +236,7 @@ func submitFlagHandler(w http.ResponseWriter, r *http.Request) {
 						correctFlag = true
 					} else {
 						// ow, bummer :(
-						challenge.FlagTries++
+						challenges[index].FlagTries++
 					}
 					break
 				}