Skip to content

Commit 2bddef6

Browse files
author
iwysiu
committed
GODRIVER-989 check for nil WireVersion in KillCursors
Change-Id: I1e1f008bd4564bbc1348356d18fdd2e5a62a0cfc
1 parent ef3d2c5 commit 2bddef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/kill_cursors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func KillCursors(
3232
}
3333
defer conn.Close()
3434

35-
if desc.WireVersion.Max < 4 {
35+
if desc.WireVersion == nil || desc.WireVersion.Max < 4 {
3636
return result.KillCursors{}, legacyKillCursors(ctx, ns, cursorID, conn)
3737
}
3838

0 commit comments

Comments
 (0)