projects
/
swifty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set the bytes value in the mptp_dest structure when sending message.
[swifty.git]
/
src
/
kernel
/
mptp.c
diff --git
a/src/kernel/mptp.c
b/src/kernel/mptp.c
index
83f7b1e
..
c46461d
100644
(file)
--- a/
src/kernel/mptp.c
+++ b/
src/kernel/mptp.c
@@
-341,8
+341,11
@@
static int mptp_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *
if (likely(!err)) {
log_debug("Sent %u bytes on wire\n", len);
ret += len;
- } else
+ dest->bytes = len;
+ } else {
log_error("ip_queue_xmit failed\n");
+ dest->bytes = -1;
+ }
}
return ret;