diff options
author | Alexei Romanoff <drednout.by@gmail.com> | 2012-10-12 12:32:32 +0300 |
---|---|---|
committer | Alexei Romanoff <drednout.by@gmail.com> | 2012-10-12 12:32:32 +0300 |
commit | 89ce16df39f67ac77785a63b4111c353f0a606a3 (patch) | |
tree | f2ff5b1aa68b74821118770f024650558dcd2796 /msgpack/unpack_template.h | |
parent | d5f99959cc2ec393c13fc9e44714351272bac7fc (diff) | |
download | msgpack-python-89ce16df39f67ac77785a63b4111c353f0a606a3.tar.gz |
A segfault fixed in the issue https://github.com/msgpack/msgpack-python/issues/28
Diffstat (limited to 'msgpack/unpack_template.h')
-rw-r--r-- | msgpack/unpack_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index 7d07601..9d13062 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -361,7 +361,7 @@ _push: if(construct_cb(_map_item)(user, c->count, &c->obj, c->map_key, obj) < 0) { goto _failed; } if(++c->count == c->size) { obj = c->obj; - construct_cb(_map_end)(user, &obj); + if (construct_cb(_map_end)(user, &obj) < 0) { goto _failed; } --top; /*printf("stack pop %d\n", top);*/ goto _push; |