james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/dnsserver DNSServer.java
Date Tue, 17 Jun 2003 21:58:23 GMT
noel        2003/06/17 14:58:23

  Modified:    src/java/org/apache/james/dnsserver Tag: branch_2_1_fcs
                        DNSServer.java
  Log:
  Fix occassional NPE
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.4.6   +1 -1      jakarta-james/src/java/org/apache/james/dnsserver/DNSServer.java
  
  Index: DNSServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/dnsserver/DNSServer.java,v
  retrieving revision 1.9.4.5
  retrieving revision 1.9.4.6
  diff -u -r1.9.4.5 -r1.9.4.6
  --- DNSServer.java	16 Jun 2003 03:16:46 -0000	1.9.4.5
  +++ DNSServer.java	17 Jun 2003 21:58:23 -0000	1.9.4.6
  @@ -320,7 +320,7 @@
               short rcode = response.getHeader().getRcode();
               if (rcode == Rcode.NOERROR || rcode == Rcode.NXDOMAIN) {
                   cached = cache.addMessage(response);
  -                if (cached != null) {
  +                if (cached != null && cached.isSuccessful()) {
                       return processSetResponse(cached);
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message