Skip to content

Commit

Permalink
Merge pull request #645 from dedis/equal_testing
Browse files Browse the repository at this point in the history
Improve error handling
  • Loading branch information
Jeff R. Allen committed Jun 8, 2020
2 parents 3a55fb9 + eebd029 commit df668c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (si ServerIdentity) GetID() ServerIdentityID {

// Equal tests on same public key
func (si *ServerIdentity) Equal(e2 *ServerIdentity) bool {
if si == nil || e2 == nil || si.Public == nil {
if si == nil || e2 == nil || si.Public == nil || e2.Public == nil {
return false
}
return si.Public.Equal(e2.Public)
Expand Down

0 comments on commit df668c8

Please sign in to comment.