Use proper e-mail address format everywhere.
[doldaconnect.git] / clients / gtk2 / hublist.c
index 556e3c3..7342945 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  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
@@ -69,6 +69,7 @@ void aborthublist(void)
        if(bzs != NULL) {
            BZ2_bzDecompressEnd(bzs);
            free(bzs);
+           bzs = NULL;
        }
        if(filter != NULL) {
            regfree(filter);
@@ -195,6 +196,10 @@ void fetchhublist(char *url, regex_t *flt)
     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);