From 676c9d035e06cf586759817b945e606e0f869923 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 3 Sep 2018 18:42:54 +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 62b22f5..2067cae 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 len(p.Children) <= 1 { + if nil == p.Children || len(p.Children) <= 1 { return osm.NotMatchedError() }