aboutsummaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-20 12:13:49 +0100
committerJakob Unterwurzacher2019-01-20 12:13:49 +0100
commit8c09df03aa5eeb581befb7bb77a0af44b39dfd37 (patch)
tree8617e715beb8695248ccaac14b76cd6eb5ca756d /daemonize.go
parent452b8b00f426c9e745fcdeb3677147d492406f6f (diff)
ctlsock: fix buffer truncation of JSON unmarshal error
In the error case, buf was not restored to the original capacity. Instead of truncating "buf" and restoring (or forgetting to restore) later, introduce the "data" slice. Fixes https://github.com/rfjakob/gocryptfs/issues/356
Diffstat (limited to 'daemonize.go')
0 files changed, 0 insertions, 0 deletions