Repository: qpid-dispatch Updated Branches: refs/heads/master 91837164d -> 536e4daf3
DISPATCH-501 - Added a null check in qd_parse() to avoid crash Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/536e4daf Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/536e4daf Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/536e4daf Branch: refs/heads/master Commit: 536e4daf3d8cd2e4c37e1785143aca3bad510497 Parents: 9183716 Author: Ganesh Murthy <[email protected]> Authored: Wed Sep 14 15:44:14 2016 -0400 Committer: Ganesh Murthy <[email protected]> Committed: Wed Sep 14 15:44:14 2016 -0400 ---------------------------------------------------------------------- src/parse.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/536e4daf/src/parse.c ---------------------------------------------------------------------- diff --git a/src/parse.c b/src/parse.c index 55050ca..662b37a 100644 --- a/src/parse.c +++ b/src/parse.c @@ -137,6 +137,8 @@ static qd_parsed_field_t *qd_parse_internal(qd_field_iterator_t *iter, qd_parsed qd_parsed_field_t *qd_parse(qd_field_iterator_t *iter) { + if (!iter) + return 0; return qd_parse_internal(iter, 0); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
