(james-jspf) 05/07: Fix hang when more than one record is found

[email protected]
Newsgroups gmane.comp.jakarta.james.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-jspf.git

commit b63115005fd729d2da94064049f0f3b811892d94
Author: Emerson Pinter <[email protected]>
AuthorDate: Fri Feb 7 18:11:18 2025 -0300

    Fix hang when more than one record is found
---
 .../java/org/apache/james/jspf/executor/AsynchronousSPFExecutor.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/resolver/src/main/java/org/apache/james/jspf/executor/AsynchronousSPFExecutor.java b/resolver/src/main/java/org/apache/james/jspf/executor/AsynchronousSPFExecutor.java
index f0f9fe7..eb5b744 100644
--- a/resolver/src/main/java/org/apache/james/jspf/executor/AsynchronousSPFExecutor.java
+++ b/resolver/src/main/java/org/apache/james/jspf/executor/AsynchronousSPFExecutor.java
@@ -81,6 +81,7 @@ public class AsynchronousSPFExecutor implements SPFExecutor {
                         handleCont(session, result, dnsLookupContinuation, checker);
                     } catch (PermErrorException | NoneException | TempErrorException | NeutralException e) {
                         handleError(session, e);
+                        result.setSPFResult(session);
                     }
                 })
                 .exceptionally(e -> {
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.