]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: fix typo in tls handshake error
authorJoël Stemmer <stemmertech@gmail.com>
Fri, 6 Mar 2015 13:59:12 +0000 (14:59 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 6 Mar 2015 18:18:40 +0000 (18:18 +0000)
Change-Id: Ia9f39250619ea6e94157efceddfb2e02d35f3ae2
Reviewed-on: https://go-review.googlesource.com/7041
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>

src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_test.go

index c87da50df953f39c24bb48d8fa3f3a36f3171674..7675770ded2a4286760bd1c628396bc78035a3fe 100644 (file)
@@ -229,7 +229,7 @@ Curves:
                        // The client is doing a fallback connection.
                        if hs.clientHello.vers < c.config.maxVersion() {
                                c.sendAlert(alertInappropriateFallback)
-                               return false, errors.New("tls: client using inppropriate protocol fallback")
+                               return false, errors.New("tls: client using inappropriate protocol fallback")
                        }
                        break
                }
index 46a90d3a365cb5122318fffa720cf9712874a2d4..f0ef26000affe96d0a815f8a9f5bc209b1e362e7 100644 (file)
@@ -780,7 +780,7 @@ func TestFallbackSCSV(t *testing.T) {
                config: serverConfig,
                // OpenSSL 1.0.1j is needed for the -fallback_scsv option.
                command: []string{"openssl", "s_client", "-fallback_scsv"},
-               expectHandshakeErrorIncluding: "inppropriate protocol fallback",
+               expectHandshakeErrorIncluding: "inappropriate protocol fallback",
        }
        runServerTestTLS11(t, test)
 }