mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
net/route: fix return value of net_writeroute_ipv6
Return ntotal (total bytes written) instead of ret (result of last write call). This matches the expected semantics and is consistent with net_writeroute_ipv4(). Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
c6c7cf6bba
commit
34fbaa15ee
1 changed files with 1 additions and 1 deletions
|
|
@ -475,7 +475,7 @@ ssize_t net_writeroute_ipv6(FAR struct file *filep,
|
|||
while (ntotal < sizeof(struct net_route_ipv6_s));
|
||||
|
||||
net_unlockroute_ipv6();
|
||||
return ret;
|
||||
return ntotal;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue