diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ident.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 09b291144..0ea69d6d9 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -54,9 +54,10 @@ class RFC1413 : public InspSocket virtual bool OnDataReady() { - std::string databuf = this->Read(); - if (databuf != "") + char* nbuf = this->Read(); + if (nbuf) { + std::string databuf = nbuf; char ibuf[1024]; strlcpy(ibuf,databuf.c_str(),1024); Srv->Log(DEBUG,"Received ident response"); |