Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 554460 Details for
Bug 670632
=mail-mta/opensmtpd-6.0.3_p1: crash on relay authentication
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
opensmtpd-6.0.3_p1 relay authentication patch
opensmtpd-6.0.3_p1-checkpass.patch (text/plain), 789 bytes, created by
Robert Gill
on 2018-11-07 21:32:44 UTC
(
hide
)
Description:
opensmtpd-6.0.3_p1 relay authentication patch
Filename:
MIME Type:
Creator:
Robert Gill
Created:
2018-11-07 21:32:44 UTC
Size:
789 bytes
patch
obsolete
>diff --git a/openbsd-compat/crypt_checkpass.c b/openbsd-compat/crypt_checkpass.c >index dafd2dae..d10b3a57 100644 >--- a/openbsd-compat/crypt_checkpass.c >+++ b/openbsd-compat/crypt_checkpass.c >@@ -1,5 +1,6 @@ > /* OPENBSD ORIGINAL: lib/libc/crypt/cryptutil.c */ > >+#include "includes.h" > #include <errno.h> > #ifdef HAVE_CRYPT_H > #include <crypt.h> >@@ -10,6 +11,8 @@ > int > crypt_checkpass(const char *pass, const char *goodhash) > { >+ char *c; >+ > if (goodhash == NULL) > goto fail; > >@@ -17,7 +20,11 @@ crypt_checkpass(const char *pass, const char *goodhash) > if (strlen(goodhash) == 0 && strlen(pass) == 0) > return 0; > >- if (strcmp(crypt(pass, goodhash), goodhash) == 0) >+ c = crypt(pass, goodhash); >+ if (c == NULL) >+ goto fail; >+ >+ if (strcmp(c, goodhash) == 0) > return 0; > > fail:
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 670632
: 554460