This commit is contained in:
insanity
2018-09-03 12:43:12 +09:00
parent dc0d6a2608
commit 4ae2561045
2 changed files with 6 additions and 1 deletions

View File

@@ -45,6 +45,10 @@ func (l *LDAPMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e
}
p := ber.DecodePacket(packet.Buffer)
if len(p.Children) <= 1 {
return osm.NotMatchedError()
}
respID, ok := p.Children[0].Value.(int64)
if !ok {
return osm.NotMatchedError()