Mercurial > pidgin.yaz
comparison libpurple/protocols/simple/simple.c @ 32192:f71b6a715cc7
Fix some closes on invalid fds, which can crash on Windows.
committer: Ethan Blanton <elb@pidgin.im>
author | Florian Quèze <florian@instantbird.org> |
---|---|
date | Sun, 10 Jul 2011 13:11:36 +0000 |
parents | b671728e6ee9 |
children | a5b556ac1de5 |
comparison
equal
deleted
inserted
replaced
32191:c44f896d2676 | 32192:f71b6a715cc7 |
---|---|
1930 return; | 1930 return; |
1931 } | 1931 } |
1932 | 1932 |
1933 gc->proto_data = sip = g_new0(struct simple_account_data, 1); | 1933 gc->proto_data = sip = g_new0(struct simple_account_data, 1); |
1934 sip->gc = gc; | 1934 sip->gc = gc; |
1935 sip->fd = -1; | |
1936 sip->listenfd = -1; | |
1935 sip->account = account; | 1937 sip->account = account; |
1936 sip->registerexpire = 900; | 1938 sip->registerexpire = 900; |
1937 sip->udp = purple_account_get_bool(account, "udp", FALSE); | 1939 sip->udp = purple_account_get_bool(account, "udp", FALSE); |
1938 /* TODO: is there a good default grow size? */ | 1940 /* TODO: is there a good default grow size? */ |
1939 if(!sip->udp) | 1941 if(!sip->udp) |