ldap bug fixed

This commit is contained in:
crusader 2018-09-03 18:48:58 +09:00
parent 676c9d035e
commit 3e7b2fda79

View File

@ -45,7 +45,7 @@ func (l *LDAPMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e
} }
p := ber.DecodePacket(packet.Buffer) p := ber.DecodePacket(packet.Buffer)
if nil == p.Children || len(p.Children) <= 1 { if nil == p || nil == p.Children || len(p.Children) <= 1 {
return osm.NotMatchedError() return osm.NotMatchedError()
} }