[smtpd/qpsmtpd] 03c9d0: Check $addr is defined before using it (#266)

[email protected] (GitHub) Sun, 15 May 2016 10:19:04 -0700
Newsgroups perl.qpsmtpd.dev
Message-ID <5738af882e685_36273ff147bd72c0122341@hookshot-fe4-cp1-prd.iad.github.net.mail>
----==_mimepart_5738af882e2b2_36273ff147bd72c01222c6
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

  Branch: refs/heads/master
  Home:   https://github.com/smtpd/qpsmtpd
  Commit: 03c9d045f4276c340cf31cc130da8f4f1ecdd81a
      https://github.com/smtpd/qpsmtpd/commit/03c9d045f4276c340cf31cc130da8f4f1ecdd81a
  Author: Daniel B <[email protected]>
  Date:   2016-05-15 (Sun, 15 May 2016)

  Changed paths:
    M lib/Qpsmtpd.pm

  Log Message:
  -----------
  Check $addr is defined before using it (#266)

Prevent the following error if we receive an invalid RCPT TO (eg <"relaytest%nmap.scanme.org">)

Can't call method "qp" on an undefined value at /usr/share/perl5/vendor_perl/Qpsmtpd.pm line 451.
/usr/bin/qpsmtpd-forkserver[17472]: command 'rcpt' failed unexpectedly



----==_mimepart_5738af882e2b2_36273ff147bd72c01222c6--