commit | bb6a786b676ab5ea6a1a13b5c14ddd965d7583fc | [log] [tgz] |
---|---|---|
author | Josef Micka <micka@compelson.com> | Thu Apr 11 14:49:32 2024 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Mon Apr 15 20:10:28 2024 +0200 |
tree | 2fe6232b53fc51a0c531f56ca28ac460f2d4bb9c | |
parent | 032bc1f61ddb452c6bc53a8e86bc184240ca30cc [diff] |
Fix usbmuxd_send returning positive value on error Since socket_send already returns -errno, this function should pass it as is
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 8647ee2..8329bef 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c
@@ -1593,7 +1593,7 @@ if (num_sent < 0) { *sent_bytes = 0; LIBUSBMUXD_DEBUG(1, "%s: Error %d when sending: %s\n", __func__, -num_sent, strerror(-num_sent)); - return -num_sent; + return num_sent; } if ((uint32_t)num_sent < len) {