diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-06 17:12:08 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-06 17:12:08 +0300 |
commit | 6e382e5e70667dea4044645b57a2e8e3ccbc3254 (patch) | |
tree | 6d3b5def243aca1574d74dd7f3dd2fd4ed9591a0 /src/util.c | |
parent | 514d83c13d1f22263c9662154e7459cdbff51c97 (diff) | |
download | rspamd-6e382e5e70667dea4044645b57a2e8e3ccbc3254.tar.gz rspamd-6e382e5e70667dea4044645b57a2e8e3ccbc3254.zip |
* Fix bad memory leaks and memory corruption in url detecting module
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 4ca9a437b..cbe6d9821 100644 --- a/src/util.c +++ b/src/util.c @@ -236,6 +236,7 @@ init_signals (struct sigaction *signals, sig_t sig_handler) signals->sa_handler = sig_handler; + signals->sa_flags = 0; sigaction (SIGTERM, signals, NULL); sigaction (SIGINT, signals, NULL); sigaction (SIGHUP, signals, NULL); @@ -248,6 +249,7 @@ init_signals (struct sigaction *signals, sig_t sig_handler) sigemptyset (&sigpipe_act.sa_mask); sigaddset (&sigpipe_act.sa_mask, SIGPIPE); sigpipe_act.sa_handler = SIG_IGN; + sigpipe_act.sa_flags = 0; sigaction (SIGPIPE, &sigpipe_act, NULL); } |