diff options
| author | 2022-11-01 19:28:41 +0100 | |
|---|---|---|
| committer | 2022-11-01 19:28:41 +0100 | |
| commit | 862560947b66769f8536651ff63facfb1283ada7 (patch) | |
| tree | 15e181621280d1eb0a62a3e43dc3865814616946 | |
| parent | Fixed a bug in not_really_markdown() that confused code with pre markup. (diff) | |
| download | penes-snac2-862560947b66769f8536651ff63facfb1283ada7.tar.gz penes-snac2-862560947b66769f8536651ff63facfb1283ada7.tar.xz penes-snac2-862560947b66769f8536651ff63facfb1283ada7.zip | |
Added missing user_free() when auth is needed.
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -936,8 +936,10 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 936 | p_path = xs_list_get(l, 2); | 936 | p_path = xs_list_get(l, 2); |
| 937 | 937 | ||
| 938 | /* all posts must be authenticated */ | 938 | /* all posts must be authenticated */ |
| 939 | if (!login(&snac, req)) | 939 | if (!login(&snac, req)) { |
| 940 | user_free(&snac); | ||
| 940 | return 401; | 941 | return 401; |
| 942 | } | ||
| 941 | 943 | ||
| 942 | p_vars = xs_dict_get(req, "p_vars"); | 944 | p_vars = xs_dict_get(req, "p_vars"); |
| 943 | 945 | ||