Fix warning: instance variable @ldap_controls not initialized
This commit is contained in:
parent
d6e6a97086
commit
2835ecd82d
|
@ -87,6 +87,7 @@ class LdapPdu
|
||||||
# So it makes more sense just to grab the bottom five bits.
|
# So it makes more sense just to grab the bottom five bits.
|
||||||
#@app_tag = ber_object[1].ber_identifier - 0x60
|
#@app_tag = ber_object[1].ber_identifier - 0x60
|
||||||
@app_tag = ber_object[1].ber_identifier & 31
|
@app_tag = ber_object[1].ber_identifier & 31
|
||||||
|
@ldap_controls = []
|
||||||
rescue
|
rescue
|
||||||
# any error becomes a data-format error
|
# any error becomes a data-format error
|
||||||
raise LdapPduError.new( "ldap-pdu format error" )
|
raise LdapPduError.new( "ldap-pdu format error" )
|
||||||
|
@ -144,7 +145,7 @@ class LdapPdu
|
||||||
# Return RFC-2251 Controls if any.
|
# Return RFC-2251 Controls if any.
|
||||||
# Messy. Does this functionality belong somewhere else?
|
# Messy. Does this functionality belong somewhere else?
|
||||||
def result_controls
|
def result_controls
|
||||||
@ldap_controls || []
|
@ldap_controls
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return serverSaslCreds, which are only present in BindResponse packets.
|
# Return serverSaslCreds, which are only present in BindResponse packets.
|
||||||
|
|
Loading…
Reference in a new issue