From 2c5c60b752a4505de783c58ac1460025f0c617d4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Feb 2012 21:52:44 +0900 Subject: [PATCH] Updated according to spdylay_select_next_protocol change --- examples/spdylay_ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/spdylay_ssl.cc b/examples/spdylay_ssl.cc index 74703afc..71345367 100644 --- a/examples/spdylay_ssl.cc +++ b/examples/spdylay_ssl.cc @@ -431,7 +431,7 @@ int select_next_proto_cb(SSL* ssl, std::cout << std::endl; } } - if(spdylay_select_next_protocol(out, outlen, in, inlen) == -1) { + if(spdylay_select_next_protocol(out, outlen, in, inlen) != 1) { std::cerr << "Server did not advertise spdy/2 protocol." << std::endl; abort(); }