Skip to content
Snippets Groups Projects
Commit 3f9fecbb authored by Will Dietz's avatar Will Dietz :speech_balloon:
Browse files

libipc: Fix bad code path when connect() fails.

parent 9a4bfffe
No related branches found
Tags atc15-ipcd_tests_166-01_31_2015
No related merge requests found
......@@ -179,7 +179,7 @@ static inline int __internal_connect(int fd, const struct sockaddr *addr,
start = get_time();
}
int ret = __real_connect(fd, addr, addrlen);
if (is_reg) {
if (is_reg && ret != -1) {
end = get_time();
set_time(fd, start, end);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment