mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
Error out when we get an unknown NPN result.
This commit is contained in:
parent
c408f9c1b3
commit
75c4bb0754
@ -164,7 +164,9 @@ kore_connection_handle(struct connection *c)
|
|||||||
NETBUF_CALL_CB_ALWAYS, NULL,
|
NETBUF_CALL_CB_ALWAYS, NULL,
|
||||||
http_header_recv);
|
http_header_recv);
|
||||||
} else {
|
} else {
|
||||||
kore_debug("npn: received unknown protocol");
|
kore_log(LOG_NOTICE,
|
||||||
|
"npn: received unknown protocol");
|
||||||
|
return (KORE_RESULT_ERROR);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
c->proto = CONN_PROTO_HTTP;
|
c->proto = CONN_PROTO_HTTP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user