Mercurial > pidgin
diff plugins/gaim-remote/remote-socket.c @ 10899:1e6bdc7175e9
[gaim-migrate @ 12619]
Bits'n'pieces:
Don't allow gaim-remote "clones" to knock gaim out by specifying a big packet
length.
Correctly bound the point sizes in gtkimhtml & yahoo
Fix up some code in MSN that isn't actually being used, just in case someone
comes along and submits a patch that would use it.
Don't try writing to the server in MSN if you're not actually connected
Fix message flags in SILC
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Thu, 05 May 2005 13:09:28 +0000 |
| parents | 5364929fad9b |
| children |
line wrap: on
line diff
--- a/plugins/gaim-remote/remote-socket.c Tue May 03 04:40:53 2005 +0000 +++ b/plugins/gaim-remote/remote-socket.c Thu May 05 13:09:28 2005 +0000 @@ -142,9 +142,9 @@ } if (p->length) { - data = g_malloc(p->length); + data = g_try_malloc(p->length); - if ((read(fd, data, p->length)) != p->length) { + if ((data == NULL) || (read(fd, data, p->length)) != p->length) { g_free(p); return NULL; }
