Skip to content

Commit

Permalink
If not found in the cache return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
minlpli authored and adriancable committed Jan 6, 2024
1 parent 3427819 commit bb54a30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handshake_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ func (h *handshakeCache) fullPullMap(startSeq int, cipherSuite CipherSuite, rule
ok = true
out[t] = rawHandshake.Message
}
return seq, out, ok
if !ok {
return seq, nil, false
}
return seq, out, true
}

// pullAndMerge calls pull and then merges the results, ignoring any null entries
Expand Down

0 comments on commit bb54a30

Please sign in to comment.