cvs commit: qpsmtpd/plugins spamassassin

[email protected] (Ask "Bj?rn" Hansen)
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
cvsuser     04/07/18 04:02:25

  Modified:    plugins  spamassassin
  Log:
  remove warning when not using spamd_socket
  
  Revision  Changes    Path
  1.11      +2 -1      qpsmtpd/plugins/spamassassin
  
  Index: spamassassin
  ===================================================================
  RCS file: /cvs/public/qpsmtpd/plugins/spamassassin,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -r1.10 -r1.11
  --- spamassassin	10 Jun 2004 06:26:18 -0000	1.10
  +++ spamassassin	18 Jul 2004 11:02:24 -0000	1.11
  @@ -98,7 +98,8 @@
     my $paddr   = sockaddr_in($port, $iaddr);
   
     my $proto   = getprotobyname('tcp');
  -  if ( $self->{_args}->{spamd_socket} =~ /^([\w\/.-]+)$/ ) { # connect to Unix Domain Socket
  +  if ($self->{_args}->{spamd_socket} and
  +      $self->{_args}->{spamd_socket} =~ /^([\w\/.-]+)$/ ) { # connect to Unix Domain Socket
       my $spamd_socket = $1;
       
       socket(SPAMD, PF_UNIX, SOCK_STREAM, 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.