From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ar.aichi-u.ac.jp ([202.250.160.40]) by ttr; Thu May 22 05:06:34 EDT 2014 Received: from [192.168.1.105] ([125.193.25.135]) by ar; Thu May 22 18:06:24 JST 2014 From: arisawa Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: bug? in /sys/src/9/port/devtls.c Message-Id: <03EEDEF0-8163-4295-A52D-3B9898D3155A@ar.aichi-u.ac.jp> List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: lossless anonymous just-in-time package-based HTML over YAML injection-oriented cache Date: Thu, 22 May 2014 18:06:24 +0900 To: "9front@9front.org" <9front@9front.org> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) Hello, I found garbage messages in /sys/log/http that comes from my web server = Pegasus. # # /sys/log/http # ar May 22 15:08:41 8006 123.125.71.96 plan9 GET / HTTP/1.1 ar May 22 15:08:41 8006 123.125.71.96 plan9 sent /doc/index.html ar May 22 15:08:44 error: tlsServer certificate=3D/sys/lib/tls/cert: i/o = on hungup channel ar May 22 15:08:44 error: tlsServer certificate=3D/sys/lib/tls/cert: = devtls expected ver=3D301, saw (len=3D20037) type=3D43 ver=3D4f4e = 'CONNE=14=EF=BF=BD=11=EF=BF=BD=EF=BF=BD,' term% pwd /usr/arisawa/src/Pegasus/pegasus-2.7/httpd term% g tlsServer httpd.c:436: data =3D tlsServer(data, &conn); httpd.c:438: syslog(0, HTTPLOG, = "error: tlsServer certificate=3D%s: %r", certificate); term%=20 /sys/src/9/port/devtls.c if(ver !=3D tr->version && (tr->verset || ver < MinProtoVersion = || ver > MaxProtoVersion)) rcvError(tr, EProtocolVersion, "devtls expected = ver=3D%x%s, saw (len=3D%d) type=3D%x ver=3D%x '%.12s'", tr->version, tr->verset?"/set":"", len, type, = ver, (char*)header); I suspect string in "header" is not null terminated. Kenji Arisawa