--- libpurple/protocols/msn/slplink.c +++ libpurple/protocols/msn/slplink.c @@ -556,13 +556,15 @@ PurpleXfer *xfer; xfer = slpmsg->slpcall->xfer; - if (xfer != NULL) { purple_xfer_start(slpmsg->slpcall->xfer, 0, NULL, 0); - slpmsg->fp = ((PurpleXfer *)slpmsg->slpcall->xfer)->dest_fp; - xfer->dest_fp = NULL; /* Disable double fclose() */ + if (slpmsg->slpcall->xfer) + { + slpmsg->fp = ((PurpleXfer *)slpmsg->slpcall->xfer)->dest_fp; + xfer->dest_fp = NULL; /* Disable double fclose() */ + } } } } --- libpurple/protocols/msnp9/slplink.c +++ libpurple/protocols/msnp9/slplink.c @@ -555,13 +555,15 @@ PurpleXfer *xfer; xfer = slpmsg->slpcall->xfer; - if (xfer != NULL) { purple_xfer_start(slpmsg->slpcall->xfer, 0, NULL, 0); - slpmsg->fp = ((PurpleXfer *)slpmsg->slpcall->xfer)->dest_fp; - xfer->dest_fp = NULL; /* Disable double fclose() */ + if (slpmsg->slpcall->xfer) + { + slpmsg->fp = ((PurpleXfer *)slpmsg->slpcall->xfer)->dest_fp; + xfer->dest_fp = NULL; /* Disable double fclose() */ + } } } }