Browse Source

Fix couple of issues found by coverity scan

tags/1.2.0
Vsevolod Stakhov 8 years ago
parent
commit
6af9f27166
4 changed files with 6 additions and 2 deletions
  1. 1
    1
      src/libstat/backends/redis_backend.c
  2. 3
    0
      src/libutil/http.c
  3. 1
    1
      src/libutil/regexp.c
  4. 1
    0
      src/rspamadm/configdump.c

+ 1
- 1
src/libstat/backends/redis_backend.c View File

} }
} }


if (target == NULL) {
if (target == NULL || task == NULL) {
return tlen; return tlen;
} }



+ 3
- 0
src/libutil/http.c View File

priv->local_key, priv->msg->peer_key); priv->local_key, priv->msg->peer_key);
} }
} }
else {
rspamd_pubkey_unref (pk);
}
} }
} }



+ 1
- 1
src/libutil/regexp.c View File

res->raw_re = pcre2_compile (real_pattern, PCRE2_ZERO_TERMINATED, res->raw_re = pcre2_compile (real_pattern, PCRE2_ZERO_TERMINATED,
regexp_flags & ~PCRE_FLAG(UTF), regexp_flags & ~PCRE_FLAG(UTF),
&err_code, &err_off, pcre2_ctx); &err_code, &err_off, pcre2_ctx);
if (r == NULL) {
if (res->raw_re == NULL) {
err_str = g_alloca (1024); err_str = g_alloca (1024);
memset (err_str, 0, 1024); memset (err_str, 0, 1024);
pcre2_get_error_message (err_code, err_str, 1024); pcre2_get_error_message (err_code, err_str, 1024);

+ 1
- 0
src/rspamadm/configdump.c View File

nobj = ucl_object_fromstring_common ("/*", 0, 0); nobj = ucl_object_fromstring_common ("/*", 0, 0);
} }
else { else {
rspamd_fstring_free (comment);
return; return;
} }



Loading…
Cancel
Save