Skip to content

Commit 3f37bbc

Browse files
committed
Fixes an error when following referrals
When following referrals in search results an error occurs due to an unreferrenced variable. The actual value is on the pdu object.
1 parent 8a18267 commit 3f37bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ def search(args = {})
14811481
when 5 # search-result
14821482
result_pdu = pdu
14831483
controls = pdu.result_controls
1484-
if return_referrals && result_code == 10
1484+
if return_referrals && pdu.result_code == 10
14851485
if block_given?
14861486
se = Net::LDAP::Entry.new
14871487
se[:search_referrals] = (pdu.search_referrals || [])

0 commit comments

Comments
 (0)