dropbear_assert() rather than assert()

This commit is contained in:
Matt Johnston 2015-03-16 21:33:01 +08:00
parent 67b4fa313e
commit dce384668b

View File

@ -76,7 +76,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
for (r = c->res_iter; r; r = r->ai_next) for (r = c->res_iter; r; r = r->ai_next)
{ {
assert(c->sock == -1); dropbear_assert(c->sock == -1);
c->sock = socket(c->res_iter->ai_family, c->res_iter->ai_socktype, c->res_iter->ai_protocol); c->sock = socket(c->res_iter->ai_family, c->res_iter->ai_socktype, c->res_iter->ai_protocol);
if (c->sock < 0) { if (c->sock < 0) {