bugfix: ptr must be preserved until psock has finished
This commit is contained in:
parent
c2b7e26e33
commit
a95c2cf6c1
@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
|
|||||||
static
|
static
|
||||||
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
||||||
{
|
{
|
||||||
const char *ptr;
|
static const char *ptr;
|
||||||
|
|
||||||
PSOCK_BEGIN(&s->sout);
|
PSOCK_BEGIN(&s->sout);
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
|
|||||||
static
|
static
|
||||||
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
||||||
{
|
{
|
||||||
const char *ptr;
|
static const char *ptr;
|
||||||
|
|
||||||
PSOCK_BEGIN(&s->sout);
|
PSOCK_BEGIN(&s->sout);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user