From 3e7b2fda794059bedf8be6d5fffe9800dd85158f Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 3 Sep 2018 18:48:58 +0900 Subject: [PATCH] ldap bug fixed --- ldap/ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/ldap.go b/ldap/ldap.go index 2067cae..32cbef8 100644 --- a/ldap/ldap.go +++ b/ldap/ldap.go @@ -45,7 +45,7 @@ func (l *LDAPMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e } 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() }