From: fredrik Date: Mon, 30 Apr 2007 23:45:08 +0000 (+0000) Subject: Fix segv bug in XML pubhublist handler. X-Git-Tag: 0.4~89 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=031b283fc9079ac741465f454e14e64129528ba8 Fix segv bug in XML pubhublist handler. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@981 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/clients/gtk2/main.c b/clients/gtk2/main.c index ccdd6d4..880c641 100644 --- a/clients/gtk2/main.c +++ b/clients/gtk2/main.c @@ -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) {