/*
* Dolda Connect - Modular multiuser Direct Connect-style client
- * Copyright (C) 2007 Fredrik Tolf (fredrik@dolda2000.com)
+ * Copyright (C) 2007 Fredrik Tolf <fredrik@dolda2000.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
if(bzs != NULL) {
BZ2_bzDecompressEnd(bzs);
free(bzs);
+ bzs = NULL;
}
if(filter != NULL) {
regfree(filter);
u = parseurl(url);
hc = htconnect(u);
freeurl(u);
+ if(hc == NULL) {
+ msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not read hublist from server: %s"), strerror(errno));
+ return;
+ }
state = 0;
settags();
gtk_widget_show(main_pubhubbarbox);
len = strlen(url);
p = url + len;
if((len > 4) && !strncmp(p - 4, ".bz2", 4)) {
+ /* Because using Transfer-Encoding would just be too good! */
p -= 4;
len -= 4;
bzs = memset(smalloc(sizeof(*bzs)), 0, sizeof(*bzs));
}
}
if((len > 4) && !strncmp(p - 4, ".xml", 4)) {
+ /* Because using Content-Type would just be too good! */
p -= 4;
len -= 4;
handler = pubhubxmlhandler;