This commit is contained in:
Matthias Radestock committed 2015-07-14 13:23:28 +01:00
1 parent 2f35ad1d42
commit bbacaa42b8
1 file changed
+2 -4
+2 -4
View File
@@ -265,8 +265,7 @@ func (res *ProtocolIntroResults) doIntroV2(params ProtocolIntroParams, pubKey, p
return ErrExpectedCrypto
}
res.setupNoCrypto(gob.NewEncoder(params.Conn),
gob.NewDecoder(params.Conn))
res.setupNoCrypto(gob.NewEncoder(params.Conn), gob.NewDecoder(params.Conn))
case 1:
if pubKey == nil {
@@ -278,8 +277,7 @@ func (res *ProtocolIntroResults) doIntroV2(params ProtocolIntroParams, pubKey, p
return err
}
res.setupCrypto(params, gob.NewEncoder(params.Conn),
gob.NewDecoder(params.Conn), rbuf, privKey)
res.setupCrypto(params, gob.NewEncoder(params.Conn), gob.NewDecoder(params.Conn), rbuf, privKey)
default:
return fmt.Errorf("Bad encryption flag %d", rbuf[0])