Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
[Improvement] Update the Pound version information
Browse files Browse the repository at this point in the history
[Bugfix] Segfault reloading WAF rules

Signed-off-by: Alvaro <alvaro.cano@zevenet.com>

	modified:   configure
	modified:   pound.h
	modified:   poundctl.c
	modified:   svc.c
  • Loading branch information
cano-devel committed Jun 12, 2019
1 parent b81e02c commit 452da87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='pound'
PACKAGE_TARNAME='pound'
PACKAGE_VERSION='pound2.8a+zevenet5'
PACKAGE_STRING='pound 2.8a+zevenet5'
PACKAGE_VERSION='pound2.8a+zevenet'
PACKAGE_STRING='pound 2.8a+zevenet'
PACKAGE_BUGREPORT='roseg@apsis.ch'
PACKAGE_URL=''

Expand Down
2 changes: 1 addition & 1 deletion pound.h
Expand Up @@ -680,7 +680,7 @@ extern int connect_nb(const int, const struct addrinfo *, const int, char *);
*/
extern void config_parse(const int, char **const);

extern void onfig_parse_waf(void);
extern void config_parse_waf(int);

/*
* RSA ephemeral keys: how many and how often
Expand Down
2 changes: 1 addition & 1 deletion poundctl.c
Expand Up @@ -371,7 +371,7 @@ main(const int argc, char **argv)
cmd.cmd = REL_WAF;

sock = get_sock(sock_name);
write(sock, &cmd, sizeof(cmd));
write(sock, (void *)&cmd, sizeof(cmd));

if (!is_set) {
int n;
Expand Down
1 change: 1 addition & 0 deletions svc.c
Expand Up @@ -2098,6 +2098,7 @@ thr_control(void *arg)
break;
#if WAF
case REL_WAF:
logmsg(LOG_INFO, "Reloading WAF rules");
config_parse_waf(1);
waf_reload_rules();
break;
Expand Down

0 comments on commit 452da87

Please sign in to comment.