]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/servconf.cpp
Implemeted reconnect in rlm_stg when the connection is lost.
[stg.git] / stglibs / srvconf.lib / servconf.cpp
index 078466d7b7953076b59870c59db4dd0b64945f0b..2f4afaba147bc7132d33bddfba5331197b9cb877 100644 (file)
@@ -92,7 +92,6 @@ sc->End(el);
 //-----------------------------------------------------------------------------
 SERVCONF::SERVCONF()
     : currParser(NULL),
-      parseDepth(0),
       error(0),
       RecvUserDataCb(NULL),
       RecvGetUserDataCb(NULL),
@@ -111,6 +110,11 @@ SERVCONF::SERVCONF()
 parser = XML_ParserCreate(NULL);
 }
 //-----------------------------------------------------------------------------
+SERVCONF::~SERVCONF()
+{
+XML_ParserFree(parser);
+}
+//-----------------------------------------------------------------------------
 void SERVCONF::SetServer(const char * server)
 {
 nt.SetServer(server);
@@ -379,7 +383,6 @@ return st_ok;
 //-----------------------------------------------------------------------------
 int SERVCONF::Start(const char *el, const char **attr)
 {
-printfd(__FILE__, "<%s>\n", el);
 currParser->ParseStart(el, attr);
 return 0;
 }