openbsd-ports/net/pidgin/patches/patch-libpurple_protocols_silc_silc_c
jasper ca5e20e14b - update pidgin to 2.7.11
* various fixes and a fix for CVE-2011-1091

from brad (MAINTAINER)
2011-03-13 17:27:10 +00:00

71 lines
1.9 KiB
Plaintext

$OpenBSD: patch-libpurple_protocols_silc_silc_c,v 1.8 2011/03/13 17:27:11 jasper Exp $
--- libpurple/protocols/silc/silc.c.orig Thu Mar 10 21:20:28 2011
+++ libpurple/protocols/silc/silc.c Fri Mar 11 18:58:56 2011
@@ -674,30 +674,12 @@ silcpurple_close(PurpleConnection *gc)
SilcPurpleTask task;
#endif /* __SILC_TOOLKIT_VERSION */
GHashTable *ui_info;
- const char *ui_name = NULL, *ui_website = NULL;
- char *quit_msg;
g_return_if_fail(sg != NULL);
- ui_info = purple_core_get_ui_info();
-
- if(ui_info) {
- ui_name = g_hash_table_lookup(ui_info, "name");
- ui_website = g_hash_table_lookup(ui_info, "website");
- }
-
- if(!ui_name || !ui_website) {
- ui_name = "Pidgin";
- ui_website = PURPLE_WEBSITE;
- }
- quit_msg = g_strdup_printf(_("Download %s: %s"),
- ui_name, ui_website);
-
/* Send QUIT */
silc_client_command_call(sg->client, sg->conn, NULL,
- "QUIT", quit_msg,
- NULL);
- g_free(quit_msg);
+ "QUIT", NULL);
if (sg->conn)
silc_client_close_connection(sg->client, sg->conn);
@@ -1846,9 +1828,6 @@ static PurpleCmdRet silcpurple_cmd_quit(PurpleConversa
{
PurpleConnection *gc;
SilcPurple sg;
- GHashTable *ui_info;
- const char *ui_name = NULL, *ui_website = NULL;
- char *quit_msg;
gc = purple_conversation_get_gc(conv);
@@ -1860,23 +1839,8 @@ static PurpleCmdRet silcpurple_cmd_quit(PurpleConversa
if (sg == NULL)
return PURPLE_CMD_RET_FAILED;
- ui_info = purple_core_get_ui_info();
-
- if(ui_info) {
- ui_name = g_hash_table_lookup(ui_info, "name");
- ui_website = g_hash_table_lookup(ui_info, "website");
- }
-
- if(!ui_name || !ui_website) {
- ui_name = "Pidgin";
- ui_website = PURPLE_WEBSITE;
- }
- quit_msg = g_strdup_printf(_("Download %s: %s"),
- ui_name, ui_website);
-
silc_client_command_call(sg->client, sg->conn, NULL,
- "QUIT", (args && args[0]) ? args[0] : quit_msg, NULL);
- g_free(quit_msg);
+ "QUIT", NULL);
return PURPLE_CMD_RET_OK;
}