diff options
author | Christophe Ronco <c.ronco@kerlink.fr> | 2017-01-17 09:58:12 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-17 09:58:12 +0100 |
commit | 7d942faea72679a6d3125a9127860400de11cfb3 (patch) | |
tree | 2bc79c5e9cd170b9f717d7e735e947a6e122d0c3 /src/qmi-firmware-update | |
parent | ca43e463eab3e44ec81d226b1752b4723ced964e (diff) | |
download | external_libqmi-7d942faea72679a6d3125a9127860400de11cfb3.zip external_libqmi-7d942faea72679a6d3125a9127860400de11cfb3.tar.gz external_libqmi-7d942faea72679a6d3125a9127860400de11cfb3.tar.bz2 |
qmi-firmware-update: fix seg fault in case of error in hdlc_unframe
Diffstat (limited to 'src/qmi-firmware-update')
-rw-r--r-- | src/qmi-firmware-update/qfu-qdl-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmi-firmware-update/qfu-qdl-device.c b/src/qmi-firmware-update/qfu-qdl-device.c index d045ad9..c90a778 100644 --- a/src/qmi-firmware-update/qfu-qdl-device.c +++ b/src/qmi-firmware-update/qfu-qdl-device.c @@ -413,7 +413,7 @@ receive_response (QfuQdlDevice *self, unframed_size = hdlc_unframe (self->priv->buffer->data, frame_size, self->priv->secondary_buffer->data, self->priv->secondary_buffer->len, error); if (unframed_size == 0) { g_prefix_error (error, "error unframing message: "); - return FALSE; + return -1; } /* Debug output */ |