Fix access plugin crash #1640

Merged
merged 1 commit into from Oct 5, 2016

Conversation

Projects
None yet
2 participants
@smfreegard
Collaborator

smfreegard commented Oct 5, 2016

Fixes crash observed running Haraka directly from repo:

[CRIT] [ED90CD6F-BDA8-4E8D-B0D4-370F45CDE561.1] [core] Plugin access failed: TypeError: Cannot read property 'host' of undefined
    at Plugin.exports.data_any (/home/smf/git/Haraka/plugins/access.js:394:58)
    at Object.plugins.run_next_hook (/home/smf/git/Haraka/plugins.js:486:28)
    at Object.plugins.run_hooks (/home/smf/git/Haraka/plugins.js:402:13)
    at MessageStream.end_callback (/home/smf/git/Haraka/connection.js:1618:17)
    at MessageStream._write (/home/smf/git/Haraka/messagestream.js:138:37)
    at ChunkEmitter.<anonymous> (/home/smf/git/Haraka/messagestream.js:64:18)
    at emitOne (events.js:96:13)
    at ChunkEmitter.emit (events.js:188:7)
    at ChunkEmitter.end (/home/smf/git/Haraka/chunkemitter.js:92:14)
    at MessageStream.add_line_end (/home/smf/git/Haraka/messagestream.js:115:24)

@msimerson msimerson merged commit 9bb7d91 into haraka:master Oct 5, 2016

3 checks passed

codecov/patch Coverage not affected when comparing fd24f05...8dafa3e
Details
codecov/project 35.86% (+0.00%) compared to fd24f05
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment