Fix segv bug in XML pubhublist handler.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 30 Apr 2007 23:45:08 +0000 (23:45 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 30 Apr 2007 23:45:08 +0000 (23:45 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@981 959494ce-11ee-0310-bf91-de5d638817bd

clients/gtk2/main.c

index ccdd6d4..880c641 100644 (file)
@@ -1518,6 +1518,11 @@ int pubhubxmlhandler(int op, char *buf, size_t *len)
        }
        break;
     case PHO_EOF:
+       if(ctxt == NULL)
+       {
+           msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("A hub list could not be read from %s"), pubhubaddr);
+           break;
+       }
        xmlParseChunk(ctxt, NULL, 0, 1);
        if(!ctxt->wellFormed)
        {