Apply fix from #1827 to rekey

This commit is contained in:
Jeff Mitchell 2016-09-01 17:42:28 -04:00
parent cc08dc7400
commit 19d64a476a

View file

@ -282,7 +282,7 @@ func (c *Core) BarrierRekeyUpdate(key []byte, nonce string) (*RekeyResult, error
// Check if we already have this piece // Check if we already have this piece
for _, existing := range c.barrierRekeyProgress { for _, existing := range c.barrierRekeyProgress {
if bytes.Equal(existing, key) { if bytes.Equal(existing, key) {
return nil, nil return nil, fmt.Errorf("given key has already been provided during this generation operation")
} }
} }