Mercurial > pidgin
comparison src/protocols/oscar/rxqueue.c @ 5927:04dc7fe68889
[gaim-migrate @ 6367]
Another crisp patch from Ryan McCabe (odin). This one makes libfaim act less
sucky in the event of some weird connection problems (read: rare shizzle).
Also some header and compile warning cleanup.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 20 Jun 2003 04:16:23 +0000 |
parents | 2d9f7d2e3558 |
children | c86f075b269a |
comparison
equal
deleted
inserted
replaced
5926:6c22d37c6a3c | 5927:04dc7fe68889 |
---|---|
180 | 180 |
181 /* | 181 /* |
182 * Rendezvous (client to client) connections do not speak FLAP, so this | 182 * Rendezvous (client to client) connections do not speak FLAP, so this |
183 * function will break on them. | 183 * function will break on them. |
184 */ | 184 */ |
185 if (conn->type == AIM_CONN_TYPE_RENDEZVOUS) | 185 if (conn->type == AIM_CONN_TYPE_RENDEZVOUS) { |
186 payloadlen = aim_get_command_rendezvous(sess, conn, newrx); | 186 int ret = aim_get_command_rendezvous(sess, conn, newrx); |
187 else if (conn->type == AIM_CONN_TYPE_LISTENER) { | 187 |
188 if (ret < 0) { | |
189 free(newrx); | |
190 return -1; | |
191 } | |
192 | |
193 payloadlen = ret; | |
194 } else if (conn->type == AIM_CONN_TYPE_LISTENER) { | |
188 faimdprintf(sess, 0, "AIM_CONN_TYPE_LISTENER on fd %d\n", conn->fd); | 195 faimdprintf(sess, 0, "AIM_CONN_TYPE_LISTENER on fd %d\n", conn->fd); |
189 free(newrx); | 196 free(newrx); |
190 return -1; | 197 return -1; |
191 } else | 198 } else |
192 payloadlen = aim_get_command_flap(sess, conn, newrx); | 199 payloadlen = aim_get_command_flap(sess, conn, newrx); |