Skip to content

Fix for panic when Message-ID is not supplied and From field fails to parse#1

Open
cklenetsky wants to merge 1 commit into
snargleplax:masterfrom
cklenetsky:bad_from_panic_fix
Open

Fix for panic when Message-ID is not supplied and From field fails to parse#1
cklenetsky wants to merge 1 commit into
snargleplax:masterfrom
cklenetsky:bad_from_panic_fix

Conversation

@cklenetsky

Copy link
Copy Markdown

When Message-ID is not supplied, if the From field fails to parse, the code dereferences a nil.
This change checks the result of From(), and if it's nil it uses an address of "unknown@unknown" instead.

… code dereferneces a nil.

This change checks the result of From(), and if it's nil it uses an address of "unknown@unknown" instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant