$NetBSD: patch-CVE-2012-5527_3,v 1.1 2012/11/29 11:01:16 drochner Exp $ --- src/vcal_meeting_gtk.c.orig 2011-10-30 21:24:29.000000000 +0000 +++ src/vcal_meeting_gtk.c @@ -1085,7 +1085,7 @@ static gboolean check_attendees_availabi if (!local_only) { remail = g_strdup(email); - g_free(email); + extract_address(remail); if (strrchr(remail, ' ')) user = g_strdup(strrchr(remail, ' ')+1); @@ -1125,17 +1125,22 @@ static gboolean check_attendees_availabi && strncmp(tmp, "ftp://", 6)) contents = file_read_to_str(tmp); else { + gchar *label = g_strdup_printf(_("Fetching planning for %s..."), email); if (!strncmp(tmp, "webcal://", 9)) { gchar *tmp2 = g_strdup_printf("http://%s", tmp+9); g_free(tmp); tmp = tmp2; } - contents = vcal_curl_read(tmp, FALSE, NULL); + contents = vcal_curl_read(tmp, label, FALSE, NULL); + g_free(label); } } else { contents = NULL; } + + g_free(email); g_free(tmp); + if (contents == NULL) { uncertain = TRUE; att_update_icon(meet, attendee, 2, _("Free/busy retrieval failed"));