mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
spa: use sized local info rather than incoming
We allow a default 0 length in the incoming const info to mean a default size (of 512). We implement it by copying the incoming const info to a copy in the spa that we can adapt, which is all good. But in two cases after we dumbly use the incoming const info directly instead of the adapted copy. https://github.com/warmcat/libwebsockets/issues/3294
This commit is contained in:
parent
12e52ae293
commit
dc65edd519
1 changed files with 2 additions and 2 deletions
|
@ -570,7 +570,7 @@ lws_spa_create_via_info(struct lws *wsi, const lws_spa_create_info_t *i)
|
|||
if (!spa->storage)
|
||||
goto bail2;
|
||||
|
||||
spa->end = spa->storage + i->max_storage - 1;
|
||||
spa->end = spa->storage + spa->i.max_storage - 1;
|
||||
|
||||
if (i->count_params) {
|
||||
if (i->ac)
|
||||
|
@ -583,7 +583,7 @@ lws_spa_create_via_info(struct lws *wsi, const lws_spa_create_info_t *i)
|
|||
goto bail3;
|
||||
}
|
||||
|
||||
spa->s = lws_urldecode_s_create(spa, wsi, spa->storage, i->max_storage,
|
||||
spa->s = lws_urldecode_s_create(spa, wsi, spa->storage, spa->i.max_storage,
|
||||
lws_urldecode_spa_cb);
|
||||
if (!spa->s)
|
||||
goto bail4;
|
||||
|
|
Loading…
Add table
Reference in a new issue