Mercurial > pidgin
comparison src/protocols/simple/simple.c @ 12689:e893563d965d
[gaim-migrate @ 15032]
Fix another crash because a callback was happening after the account was disconnected. I wonder whether the sip->listenfd should be also closed.
committer: Tailor Script <tailor@pidgin.im>
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Tue, 03 Jan 2006 04:44:08 +0000 |
| parents | 5f65a0cca87c |
| children | d5b8f4dc1622 |
comparison
equal
deleted
inserted
replaced
| 12688:473c23442a36 | 12689:e893563d965d |
|---|---|
| 1255 addr.sin_port = htons(ntohs(addr.sin_port)+1); | 1255 addr.sin_port = htons(ntohs(addr.sin_port)+1); |
| 1256 } | 1256 } |
| 1257 sip->listenport = ntohs(addr.sin_port); | 1257 sip->listenport = ntohs(addr.sin_port); |
| 1258 sip->listenfd = sip->fd; | 1258 sip->listenfd = sip->fd; |
| 1259 | 1259 |
| 1260 gaim_input_add(sip->fd, GAIM_INPUT_READ, simple_udp_process, sip->gc); | 1260 sip->listenpa = gaim_input_add(sip->fd, GAIM_INPUT_READ, simple_udp_process, sip->gc); |
| 1261 sip->serveraddr.sin_family = AF_INET; | 1261 sip->serveraddr.sin_family = AF_INET; |
| 1262 sip->serveraddr.sin_port = htons(port); | 1262 sip->serveraddr.sin_port = htons(port); |
| 1263 | 1263 |
| 1264 sip->serveraddr.sin_addr.s_addr = ((struct in_addr*)h->h_addr)->s_addr; | 1264 sip->serveraddr.sin_addr.s_addr = ((struct in_addr*)h->h_addr)->s_addr; |
| 1265 sip->ip = g_strdup(gaim_network_get_my_ip(sip->listenfd)); | 1265 sip->ip = g_strdup(gaim_network_get_my_ip(sip->listenfd)); |
