Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 204111 Details for
Bug 284801
stunnel fails to handle smtp protocol.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
A backported patch
stunnel-4.15-smtp.patch (text/plain), 1.60 KB, created by
Miloslav Trmač
on 2007-09-24 12:55:15 UTC
(
hide
)
Description:
A backported patch
Filename:
MIME Type:
Creator:
Miloslav Trmač
Created:
2007-09-24 12:55:15 UTC
Size:
1.60 KB
patch
obsolete
>diff -up stunnel-4.15/src/protocol.c~ stunnel-4.15/src/protocol.c >--- stunnel-4.15/src/protocol.c~ 2007-09-24 14:42:59.000000000 +0200 >+++ stunnel-4.15/src/protocol.c 2007-09-24 14:43:01.000000000 +0200 >@@ -176,7 +176,7 @@ static void smtp_server(CLI *c) { > s_log(LOG_ERR, "Unknown server welcome"); > longjmp(c->err, 1); > } >- fdprintf(c, c->local_wfd.fd, "220%s + stunnel", line); >+ fdprintf(c, c->local_wfd.fd, "%s + stunnel", line); > fdgetline(c, c->local_rfd.fd, line); > if(!isprefix(line, "EHLO ")) { > s_log(LOG_ERR, "Unknown client EHLO"); >diff -up stunnel-4.15/src/network.c~ stunnel-4.15/src/network.c >--- stunnel-4.15/src/network.c~ 2006-03-01 15:41:08.000000000 +0100 >+++ stunnel-4.15/src/network.c 2007-09-24 14:37:24.000000000 +0200 >@@ -554,18 +554,21 @@ void read_blocking(CLI *c, int fd, u8 *p > } > > void fdputline(CLI *c, int fd, char *line) { >- char logline[STRLEN]; >+ char tmpline[STRLEN]; > const char crlf[]="\r\n"; >+ int len; > > if(strlen(line)+2>=STRLEN) { /* 2 for crlf */ > s_log(LOG_ERR, "Line too long in fdputline"); > longjmp(c->err, 1); > } >- safecopy(logline, line); /* the line without crlf */ >- safeconcat(line, crlf); >- write_blocking(c, fd, line, strlen(line)); >- safestring(logline); >- s_log(LOG_DEBUG, " -> %s", logline); >+ safecopy(tmpline, line); >+ safeconcat(tmpline, crlf); >+ len=strlen(tmpline); >+ write_blocking(c, fd, tmpline, len); >+ tmpline[len-2]='\0'; /* remove CRLF */ >+ safestring(tmpline); >+ s_log(LOG_DEBUG, " -> %s", tmpline); > } > > void fdgetline(CLI *c, int fd, char *line) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284801
: 204111