Error out when we get an unknown NPN result.

This commit is contained in:
Joris Vink 2014-03-05 11:07:21 +01:00
parent c408f9c1b3
commit 75c4bb0754
1 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,9 @@ kore_connection_handle(struct connection *c)
NETBUF_CALL_CB_ALWAYS, NULL,
http_header_recv);
} else {
kore_debug("npn: received unknown protocol");
kore_log(LOG_NOTICE,
"npn: received unknown protocol");
return (KORE_RESULT_ERROR);
}
} else {
c->proto = CONN_PROTO_HTTP;