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
a348e580
...
a348e580e9f2017cd792fc972b98ca27d4555007
authored
2007-03-16 07:21:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(read_bulletin_db): Do not close DB too early.
1 parent
00303eb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
pop3d/bulletin.c
pop3d/bulletin.c
View file @
a348e58
...
...
@@ -142,12 +142,12 @@ read_bulletin_db (size_t *pnum)
MU_DATUM_SIZE
(
key
)
=
strlen
(
username
);
rc
=
mu_dbm_fetch
(
db
,
key
,
&
data
);
mu_dbm_close
(
db
);
if
(
rc
)
{
mu_error
(
_
(
"Cannot fetch bulletin db data: %s"
),
mu_strerror
(
errno
));
mu_dbm_close
(
db
);
return
1
;
}
...
...
@@ -168,7 +168,8 @@ read_bulletin_db (size_t *pnum)
memcpy
(
bufptr
,
MU_DATUM_PTR
(
data
),
s
);
bufptr
[
s
]
=
0
;
mu_dbm_datum_free
(
&
data
);
mu_dbm_close
(
db
);
rc
=
1
;
*
pnum
=
strtoul
(
bufptr
,
&
p
,
0
);
if
(
*
p
==
0
)
...
...
Please
register
or
sign in
to post a comment