summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfu.c b/src/dfu.c
index d83dd90..a9927cb 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -185,7 +185,7 @@ int dfu_send_component(struct idevicerestore_client_t* client, plist_t build_ide
// FIXME: Did I do this right????
err = irecv_send_buffer(client->dfu->client, data, size, flag);
free(path);
- if (error != IRECV_E_SUCCESS) {
+ if (err != IRECV_E_SUCCESS) {
error("ERROR: Unable to send %s component: %s\n", component, irecv_strerror(err));
free(data);
return -1;