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

tls-sessions: remove no stash warning

If there's no stash, we didn't get as far as having a session, so just fail
quietly
This commit is contained in:
Andy Green 2021-06-24 06:31:06 +01:00
parent 10c1b882c6
commit aea9d0cead

View file

@ -45,10 +45,8 @@ lws_tls_session_tag_from_wsi(struct lws *wsi, char *buf, size_t len)
if (!wsi)
return 1;
if (!wsi->stash) {
lwsl_warn("%s: wsi has no stash\n", __func__);
if (!wsi->stash)
return 1;
}
host = wsi->stash->cis[CIS_HOST];
if (!host)