commit | a6f1e8a691b9542a6ca9fdc9cf391c9b1fbc46dd | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Sat Dec 10 12:47:47 2016 +0000 |
committer | Yi Kong <yikong@google.com> | Mon Dec 12 10:46:17 2016 +0000 |
tree | 9e8d711d23fe25a65e6a47d7d0092f34c8f49eb5 | |
parent | 56d22f0ff5c9202024741e402722b0acd33af1a2 [diff] |
recvfrom should set srcAddress for empty packets 0 is a valid return value for recvfrom. It returns -1 on error, instead of 0. Test: libcore.io.OsTest Bug: 33483694 Change-Id: I66261f7254bc5e4e5155a8a353018ed626259b82