mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Set nil pointer to identity in GT before marshaling
This commit is contained in:
parent
ca32505902
commit
c1306d7d3a
1 changed files with 1 additions and 0 deletions
|
|
@ -388,6 +388,7 @@ func (e *GT) Marshal() []byte {
|
|||
|
||||
if e.p == nil {
|
||||
e.p = &gfP12{}
|
||||
e.p.SetOne()
|
||||
}
|
||||
|
||||
ret := make([]byte, numBytes*12)
|
||||
|
|
|
|||
Loading…
Reference in a new issue