Skip to content

Commit

Permalink
GODRIVER-989 check for nil WireVersion in KillCursors
Browse files Browse the repository at this point in the history
Change-Id: I1e1f008bd4564bbc1348356d18fdd2e5a62a0cfc
  • Loading branch information
iwysiu committed May 15, 2019
1 parent ef3d2c5 commit 2bddef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mongo/driver/kill_cursors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func KillCursors(
}
defer conn.Close()

if desc.WireVersion.Max < 4 {
if desc.WireVersion == nil || desc.WireVersion.Max < 4 {
return result.KillCursors{}, legacyKillCursors(ctx, ns, cursorID, conn)
}

Expand Down

0 comments on commit 2bddef6

Please sign in to comment.