Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with missing iso_code #24

Merged
merged 1 commit into from
Dec 22, 2017
Merged

Fixed issue with missing iso_code #24

merged 1 commit into from
Dec 22, 2017

Conversation

lnedry
Copy link
Contributor

@lnedry lnedry commented Dec 22, 2017

If the GeoIP database doesn't have an iso_code for an IP address, an exception is thrown.

Plugin geoip failed: TypeError: Cannot read property 'iso_code' of undefined
at Plugin.exports.received_headers (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-geoip/index.js:277:35)
at Plugin.exports.add_headers (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-geoip/index.js:181:19)
at Object.plugins.run_next_hook (/usr/lib/node_modules/Haraka/plugins.js:506:28)
at callback (/usr/lib/node_modules/Haraka/plugins.js:462:32)
at Plugin.exports.hook_data_post (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-p0f/index.js:248:16)
at Object.plugins.run_next_hook (/usr/lib/node_modules/Haraka/plugins.js:506:28)
at Object.plugins.run_hooks (/usr/lib/node_modules/Haraka/plugins.js:421:13)
at MessageStream.end_callback (/usr/lib/node_modules/Haraka/connection.js:1695:17)
at MessageStream._write (/usr/lib/node_modules/Haraka/messagestream.js:138:37)
at ChunkEmitter. (/usr/lib/node_modules/Haraka/messagestream.js:64:18)

@smfreegard smfreegard merged commit 591e122 into haraka:master Dec 22, 2017
@smfreegard
Copy link
Contributor

Thanks for the patch.

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.

2 participants