Skip to content

Guard against potential result_pdu nil in Net::LDAP::Connection#search #186

Open
@jch

Description

@jch

It's possible for result_pdu to be nil at

if result_pdu.result_code == Net::LDAP::ResultCodeSuccess and controls
. It's initially assigned on line 501, but only line 518 reassigns it. It's possible to get a nil if no SearchResult pdu's are seen. We should either raise an error or guard for the nil. Whoever picks this up should determine when this scenario can occur and include a failing test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions