Mercurial > dropbear
comparison netio.c @ 1078:b3b772646974
Should be AF_UNSPEC not PF_UNSPEC
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 17 Apr 2015 20:59:32 +0800 |
parents | d92597ef089e |
children | 2265d7ebfdeb c45d65392c1a |
comparison
equal
deleted
inserted
replaced
1076:d92597ef089e | 1078:b3b772646974 |
---|---|
163 | 163 |
164 list_append(&ses.conn_pending, c); | 164 list_append(&ses.conn_pending, c); |
165 | 165 |
166 memset(&hints, 0, sizeof(hints)); | 166 memset(&hints, 0, sizeof(hints)); |
167 hints.ai_socktype = SOCK_STREAM; | 167 hints.ai_socktype = SOCK_STREAM; |
168 hints.ai_family = PF_UNSPEC; | 168 hints.ai_family = AF_UNSPEC; |
169 | 169 |
170 err = getaddrinfo(remotehost, remoteport, &hints, &c->res); | 170 err = getaddrinfo(remotehost, remoteport, &hints, &c->res); |
171 if (err) { | 171 if (err) { |
172 int len; | 172 int len; |
173 len = 100 + strlen(gai_strerror(err)); | 173 len = 100 + strlen(gai_strerror(err)); |