From 8f00317567dab4c825a0eca76a9cae7951edd11f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 6 Dec 2011 14:15:52 +0100 Subject: Clean up the way connections are handled. --- server/src/saxparser.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src/saxparser.cc') diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index 95efffe..14f204c 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -130,6 +130,8 @@ bool SAXParser::parse(const char *data, size_t size) xml.append(data, size); DEBUG(sax, "parse %d bytes [%s]\n", size, xml.c_str()); + if(data == NULL || size == 0) return done; + bufferbytes = size; totalbytes += bufferbytes; -- cgit v1.2.3