gsctool: fix error processing logic
The error processing logic is reversed, which results in missing error
values when errors actually happen.
BRANCH=none
TEST=verified that errors values are now reported properly.
@@ -1596,7 +1596,7 @@ static void process_password(struct transfer_descriptor *td)
return;
fprintf(stderr, "Error setting password: rv %d, response %d\n",
- rv, response_size ? 0 : response);
+ rv, response_size ? response : 0);
exit(update_error);
}
