diff options
| author | 2025-02-05 10:51:11 +0100 | |
|---|---|---|
| committer | 2025-02-05 10:51:11 +0100 | |
| commit | 0da936901283db8c5de5b6470ffd911ac8b300fe (patch) | |
| tree | 534c5b751dd574311616813904eebc64b015d1a3 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-0da936901283db8c5de5b6470ffd911ac8b300fe.tar.gz snac2-0da936901283db8c5de5b6470ffd911ac8b300fe.tar.xz snac2-0da936901283db8c5de5b6470ffd911ac8b300fe.zip | |
Fixed crash in xs_fcgi_request().
| -rw-r--r-- | xs_fcgi.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -173,6 +173,9 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id) | |||
| 173 | xs *v = xs_str_new_sz((char *)&buf[offset], vsz); | 173 | xs *v = xs_str_new_sz((char *)&buf[offset], vsz); |
| 174 | offset += vsz; | 174 | offset += vsz; |
| 175 | 175 | ||
| 176 | if (!xs_is_string(k) || !xs_is_string(v)) | ||
| 177 | continue; | ||
| 178 | |||
| 176 | cgi_vars = xs_dict_append(cgi_vars, k, v); | 179 | cgi_vars = xs_dict_append(cgi_vars, k, v); |
| 177 | 180 | ||
| 178 | if (strcmp(k, "REQUEST_METHOD") == 0) | 181 | if (strcmp(k, "REQUEST_METHOD") == 0) |