1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

http2: missing return when openssl too old

This commit is contained in:
Andy Green 2017-10-22 10:38:43 +08:00
parent af8f2d3616
commit 4a2dd2bdaa
2 changed files with 3 additions and 2 deletions

View file

@ -129,6 +129,8 @@ lws_h2_state(struct lws *wsi, enum lws_h2_states s)
lwsl_info("%s: wsi %p: state %s -> %s\n", __func__, wsi,
h2_state_names[wsi->u.h2.h2_state],
h2_state_names[s]);
(void)h2_state_names;
wsi->u.h2.h2_state = (uint8_t)s;
}

View file

@ -147,9 +147,8 @@ int lws_h2_configure_if_upgraded(struct lws *wsi)
wsi->u.h2.tx_cr = 65535;
lwsl_info("%s: wsi %p: configured for h2\n", __func__, wsi);
return 0;
#endif
return 0;
}
#endif
#endif