Skip to content

Commit

Permalink
Merge pull request #143 from karimra/fix-session-id
Browse files Browse the repository at this point in the history
Fix session-id match
  • Loading branch information
carlmontanari authored Jul 26, 2023
2 parents f2df150 + 5053eb3 commit 280b283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/netconf/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (d *Driver) processServerCapabilities() error {

// extract session id if it exists in the hello message
sessionIDMatch := ncPatterns.sessionID.FindSubmatch(b)
if len(sessionIDMatch) == numSessionIDMatches {
if len(sessionIDMatch) != numSessionIDMatches {
return nil
}

Expand Down

0 comments on commit 280b283

Please sign in to comment.