[Bug 242862] mail/sendmail patch-tls.c breaks STARTTLS - sm_RSA_generate_key() returns NULL all the times

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 24 15:48:15 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242862

            Bug ID: 242862
           Summary: mail/sendmail patch-tls.c breaks STARTTLS -
                    sm_RSA_generate_key() returns NULL all the times
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex at FreeBSD.org
          Reporter: dan+freebsd.org at obluda.cz
          Assignee: dinoex at FreeBSD.org
             Flags: maintainer-feedback?(dinoex at FreeBSD.org)

patch-tls.c introduces sm_RSA_generate_key() function used as replacement of
original RSA_generate_key/RSA_generate_key_ex function.

Because of forgotten/excessive "return NULL" the function returns NULL all the
times. As a result, server TLS initialisation fails and STARTTLS feature is not
offered by server.

Lines
98      +                       rsa = NULL;
99      +               }
100     +               return NULL;

should be

98      +                       rsa = NULL;
99      +               }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list