From 45121e83aebfc9e447ee0d46129e76a21ded0649 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 3 Sep 2018 16:56:41 +0900 Subject: [PATCH] ing --- nbss/nbss.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nbss/nbss.go b/nbss/nbss.go index 0baac68..bb92924 100644 --- a/nbss/nbss.go +++ b/nbss/nbss.go @@ -67,7 +67,9 @@ func (t *NBSSMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e return osm.NotMatchedError() } - if NBSS_NEGATIVE_SESSION_RESPONSE != n.MsgType { + switch n.MsgType { + case NBSS_POSITIVE_SESSION_RESPONSE, NBSS_NEGATIVE_SESSION_RESPONSE: + default: return osm.NotMatchedError() }