# HG changeset patch # User Stu Tomlinson # Date 1114721224 0 # Node ID bda4b39a22b8d2fbad7ca17f6b8f50d1646ec82b # Parent 0ece4cf68ea6683361a997c4088bfb5567b2f629 [gaim-migrate @ 12591] Work around the MSN-7-somehow-related crash here too committer: Tailor Script diff -r 0ece4cf68ea6 -r bda4b39a22b8 src/protocols/msn/slp.c --- a/src/protocols/msn/slp.c Thu Apr 28 03:23:18 2005 +0000 +++ b/src/protocols/msn/slp.c Thu Apr 28 20:47:04 2005 +0000 @@ -733,9 +733,17 @@ if (slplink->swboard == NULL) { - /* We will need this in order to change it's flags. */ + /* We will need this in order to change its flags. */ slplink->swboard = (MsnSwitchBoard *)cmdproc->data; - slplink->swboard->slplink = slplink; + /* If swboard is NULL, something has probably gone wrong earlier on + * I didn't want to do this, but MSN 7 is somehow causing us to crash + * here, I couldn't reproduce it to debug more, and people are + * reporting bugs. Hopefully this doesn't cause more crashes. Stu. + */ + if (slplink->swboard != NULL) + slplink->swboard->slplink = slplink; + else + gaim_debug_error("msn", "msn_p2p_msg, swboard is NULL, ouch!\n"); } msn_slplink_process_msg(slplink, msg);