changeset 1301:e742c0e9b941

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Jun 2016 22:04:30 +0800
parents 251c5f7a6e96 (diff) 4fb9261ef02a (current diff)
children 19358268ea45
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/netio.c	Thu May 12 23:47:35 2016 +0800
+++ b/netio.c	Tue Jun 21 22:04:30 2016 +0800
@@ -61,7 +61,7 @@
 	{
 		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(r->ai_family, r->ai_socktype, r->ai_protocol);
 		if (c->sock < 0) {
 			continue;
 		}