Skip to content

Commit 9e6648e

Browse files
committed
5.12.1
- Fix crash when parsing SPF redirect
1 parent 1ab3efd commit 9e6648e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 5.12.1
4+
5+
- Fix crash when parsing SPF redirect
6+
37
## 5.12.0
48

59
### ⚠️ Breaking Changes

checkdmarc/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
See the License for the specific language governing permissions and
2020
limitations under the License."""
2121

22-
__version__ = "5.12.0"
22+
__version__ = "5.12.1"
2323

2424
OS = platform.system()
2525
OS_RELEASE = platform.release()

checkdmarc/spf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def parse_spf_record(
554554
resolver=resolver,
555555
timeout=timeout,
556556
)
557-
parsed["all"] = redirect["all"]
557+
parsed["all"] = redirect["parsed"]["all"]
558558
mechanism_dns_lookups += redirect["dns_lookups"]
559559
mechanism_void_dns_lookups += redirect["void_dns_lookups"]
560560
if total_dns_lookups > 10:

0 commit comments

Comments
 (0)