summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-04 17:32:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-04 17:32:04 +0000
commit3210a3a4fd9f5bf52f702435abe05d157894b627 (patch)
tree041cab6baefacc4be48e459316a231bfe5f35ab0 /auth
parentc0106c92f13dbf0001b444469af0f2a0c4ddf857 (diff)
downloadmailutils-3210a3a4fd9f5bf52f702435abe05d157894b627.tar.gz
mailutils-3210a3a4fd9f5bf52f702435abe05d157894b627.tar.bz2
(mu_auth_virt_domain_by_name): Bugfix. Didn't allocate enough storage for mailbox_name.
Diffstat (limited to 'auth')
-rw-r--r--auth/virtual.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth/virtual.c b/auth/virtual.c
index 3c63f43ca..a786c92e2 100644
--- a/auth/virtual.c
+++ b/auth/virtual.c
@@ -52,7 +52,7 @@
#include <mailutils/argp.h>
#include <mailutils/mu_auth.h>
-#ifdef USE_VIRTUAL_DOMAINS
+#ifdef ENABLE_VIRTUAL_DOMAINS
static char *site_virtual_pwddir = SITE_VIRTUAL_PWDDIR;
@@ -154,7 +154,7 @@ mu_auth_virt_domain_by_name (void *return_data, void *key,
return 1;
}
- mailbox_name = calloc (strlen (pw->pw_dir) + strlen ("/INBOX"), 1);
+ mailbox_name = calloc (strlen (pw->pw_dir) + strlen ("/INBOX") + 1, 1);
sprintf (mailbox_name, "%s/INBOX", pw->pw_dir);
rc = mu_auth_data_alloc ((struct mu_auth_data **) return_data,
@@ -211,7 +211,7 @@ mu_auth_virt_domain_by_name (void *return_data, void *key,
struct mu_auth_module mu_auth_virtual_module = {
"virtdomain",
-#ifdef USE_VIRTUAL_DOMAINS
+#ifdef ENABLE_VIRTUAL_DOMAINS
&mu_virt_argp,
#else
NULL,

Return to:

Send suggestions and report system problems to the System administrator.