Mercurial > pidgin
diff src/protocols/msn/servconn.c @ 6827:1cfbb731aa1f
[gaim-migrate @ 7372]
Several fixes for attempted NULL pointer frees, and some MSNSLP fixes.
Still not ready for use yet.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 14 Sep 2003 01:59:09 +0000 |
| parents | 2adf21e70601 |
| children | bd433a45a463 |
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c Sat Sep 13 23:28:08 2003 +0000 +++ b/src/protocols/msn/servconn.c Sun Sep 14 01:59:09 2003 +0000 @@ -243,7 +243,8 @@ close(servconn->fd); - g_free(servconn->rxqueue); + if (servconn->rxqueue != NULL) + g_free(servconn->rxqueue); while (servconn->txqueue != NULL) { g_free(servconn->txqueue->data); @@ -336,8 +337,10 @@ { g_return_val_if_fail(servconn != NULL, 0); +#if 0 gaim_debug(GAIM_DEBUG_MISC, "msn", "C: %s%s", buf, (*(buf + size - 1) == '\n' ? "" : "\n")); +#endif return write(servconn->fd, buf, size); }
