aboutsummaryrefslogtreecommitdiff
path: root/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'content.go')
-rw-r--r--content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/content.go b/content.go
index 2e01e46..8bd207d 100644
--- a/content.go
+++ b/content.go
@@ -81,7 +81,7 @@ func handleContent(cc *contentConn) {
cc.state++
- if cmd.AuthMethods&mt.FirstSRP == mt.FirstSRP {
+ if cmd.AuthMethods&mt.FirstSRP != 0 {
cc.auth.method = mt.FirstSRP
} else {
cc.auth.method = mt.SRP