9front - general discussion about 9front
 help / color / mirror / Atom feed
* bug? in /sys/src/9/port/devtls.c
@ 2014-05-22  9:06 arisawa
  0 siblings, 0 replies; only message in thread
From: arisawa @ 2014-05-22  9:06 UTC (permalink / raw)
  To: 9front

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=/sys/lib/tls/cert: i/o on hungup channel
ar May 22 15:08:44 error: tlsServer certificate=/sys/lib/tls/cert: devtls expected ver=301, saw (len=20037) type=43 ver=4f4e 'CONNE\x14�\x11��,'

term% pwd
/usr/arisawa/src/Pegasus/pegasus-2.7/httpd
term% g tlsServer
httpd.c:436: 				data = tlsServer(data, &conn);
httpd.c:438: 					syslog(0, HTTPLOG, "error: tlsServer certificate=%s: %r", certificate);
term% 


/sys/src/9/port/devtls.c
	if(ver != tr->version && (tr->verset || ver < MinProtoVersion || ver > MaxProtoVersion))
		rcvError(tr, EProtocolVersion, "devtls expected ver=%x%s, saw (len=%d) type=%x ver=%x '%.12s'",
			tr->version, tr->verset?"/set":"", len, type, ver, (char*)header);

I suspect string in "header" is not null terminated.

Kenji Arisawa




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-22  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22  9:06 bug? in /sys/src/9/port/devtls.c arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).