Mercurial > pidgin.yaz
changeset 13145:bfd7b9e3c705
[gaim-migrate @ 15508]
SF Patch #1407369 from eschman
This fixes a crash that happens if an incoming file transfer is rejected.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 07 Feb 2006 02:09:12 +0000 |
parents | e90e8655290d |
children | a3c1112bb190 |
files | src/protocols/jabber/si.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/si.c Tue Feb 07 01:56:50 2006 +0000 +++ b/src/protocols/jabber/si.c Tue Feb 07 02:09:12 2006 +0000 @@ -595,6 +595,13 @@ } +static void jabber_si_xfer_request_denied(GaimXfer *xfer) +{ + jabber_si_xfer_free(xfer); + gaim_debug(GAIM_DEBUG_INFO, "jabber", "in jabber_si_xfer_request_denied\n"); +} + + static void jabber_si_xfer_cancel_recv(GaimXfer *xfer) { jabber_si_xfer_free(xfer); @@ -811,6 +818,7 @@ gaim_xfer_set_size(xfer, filesize); gaim_xfer_set_init_fnc(xfer, jabber_si_xfer_init); + gaim_xfer_set_request_denied_fnc(xfer, jabber_si_xfer_request_denied); gaim_xfer_set_cancel_recv_fnc(xfer, jabber_si_xfer_cancel_recv); gaim_xfer_set_end_fnc(xfer, jabber_si_xfer_end);