comparison netio.c @ 1067:ce21d0bfaf98

dropbear_assert() rather than assert()
author Matt Johnston <matt@ucc.asn.au>
date Mon, 16 Mar 2015 21:33:01 +0800
parents cce03ea8e6eb
children 686cd3e8e13e
comparison
equal deleted inserted replaced
1066:cce03ea8e6eb 1067:ce21d0bfaf98
74 struct msghdr message; 74 struct msghdr message;
75 #endif 75 #endif
76 76
77 for (r = c->res_iter; r; r = r->ai_next) 77 for (r = c->res_iter; r; r = r->ai_next)
78 { 78 {
79 assert(c->sock == -1); 79 dropbear_assert(c->sock == -1);
80 80
81 c->sock = socket(c->res_iter->ai_family, c->res_iter->ai_socktype, c->res_iter->ai_protocol); 81 c->sock = socket(c->res_iter->ai_family, c->res_iter->ai_socktype, c->res_iter->ai_protocol);
82 if (c->sock < 0) { 82 if (c->sock < 0) {
83 continue; 83 continue;
84 } 84 }