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
078026cd
...
078026cd916a733b72f64f54379fba4dc777525b
authored
2003-01-17 10:09:33 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(pop3d_readline): Bugfix: add terminating zero, and check return value from gnutls_record_recv.
1 parent
595801aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
pop3d/extra.c
pop3d/extra.c
View file @
078026c
...
...
@@ -223,7 +223,15 @@ pop3d_readline (char *buffer, size_t size)
#ifdef WITH_TLS
if
(
tls_done
)
{
gnutls_record_recv
(
sfile
,
buffer
,
size
-
1
);
int
rc
=
gnutls_record_recv
(
sfile
,
buffer
,
size
-
1
);
if
(
rc
<
0
)
{
syslog
(
LOG_ERR
,
_
(
"TLS error on read: %s"
),
gnutls_strerror
(
rc
));
pop3d_abquit
(
ERR_TLS_IO
);
}
else
buffer
[
rc
]
=
0
;
ptr
=
buffer
;
}
else
...
...
Please
register
or
sign in
to post a comment