diff --git a/spf/parser.go b/spf/parser.go
index <HASH>..<HASH> 100644
--- a/spf/parser.go
+++ b/spf/parser.go
@@ -112,6 +112,14 @@ func (p *Parser) sortTokens(tokens []*Token) error {
 	return nil
 }
 
+func (p *Parser) setDomain(t *Token) string {
+	if !isEmpty(&t.Value) {
+		return t.Value
+	} else {
+		return p.Domain
+	}
+}
+
 func (p *Parser) parseVersion(t *Token) (bool, SPFResult) {
 	if t.Value == spfPrefix {
 		return true, None
Fix setDomain()

A logic inversion was required, as Parser.Domain was returned upon
nonempty Token.Value.