Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
3210a3a4
...
3210a3a4fd9f5bf52f702435abe05d157894b627
authored
2002-11-04 17:32:04 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_auth_virt_domain_by_name): Bugfix. Didn't allocate enough storage for mailbox_name.
1 parent
c0106c92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
auth/virtual.c
auth/virtual.c
View file @
3210a3a
...
...
@@ -52,7 +52,7 @@
#include <mailutils/argp.h>
#include <mailutils/mu_auth.h>
#ifdef
US
E_VIRTUAL_DOMAINS
#ifdef
ENABL
E_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
US
E_VIRTUAL_DOMAINS
#ifdef
ENABL
E_VIRTUAL_DOMAINS
&
mu_virt_argp
,
#else
NULL
,
...
...
Please
register
or
sign in
to post a comment