Mercurial > pidgin.yaz
diff src/proxy.c @ 5225:0bf1ced10b2b
[gaim-migrate @ 5595]
no_one_calls now sets errno on getsockopt error
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sat, 26 Apr 2003 14:58:02 +0000 |
parents | 4ee151ad8233 |
children | 8d8bf0d31a23 |
line wrap: on
line diff
--- a/src/proxy.c Sat Apr 26 14:55:40 2003 +0000 +++ b/src/proxy.c Sat Apr 26 14:58:02 2003 +0000 @@ -623,6 +623,7 @@ ret = getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len); if (ret < 0 || error != 0) { + if(ret==0) errno = error; close(source); gaim_input_remove(phb->inpa); if(!phb->account || phb->account->gc) @@ -631,8 +632,7 @@ g_free(phb); gaim_debug(GAIM_DEBUG_ERROR, "proxy", - "getsockopt SO_ERROR check: %s\n", - strerror((ret < 0) ? errno : error)); + "getsockopt SO_ERROR check: %s\n", strerror(errno)); return; } fcntl(source, F_SETFL, 0);