http: fix potential memory corruption

This commit is contained in:
Kamil Trzcinski
2023-06-01 23:05:09 +02:00
parent e3a4d2768f
commit e1a5f987c4
3 changed files with 11 additions and 8 deletions

View File

@ -62,4 +62,4 @@ void http_400(FILE *stream, const char *data);
void http_404(FILE *stream, const char *data);
void http_500(FILE *stream, const char *data);
void *http_enum_params(http_worker_t *worker, FILE *stream, http_param_fn fn, void *opaque);
const char *http_get_param(http_worker_t *worker, const char *key);
char *http_get_param(http_worker_t *worker, const char *key);