[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/krfb/kinetd
From:       Tim Jansen <tim () tjansen ! de>
Date:       2003-10-10 20:11:18
[Download RAW message or body]

CVS commit by tjansen: 

Handle null addresses, should hopefully fix #65325


  M +4 -1      kinetd.cpp   1.25


--- kdenetwork/krfb/kinetd/kinetd.cpp  #1.24:1.25
@@ -218,5 +218,8 @@ QStringList PortListener::processService
         QValueVector<KInetInterface>::Iterator it = v.begin();
         while (it != v.end()) {
-                QString hostName = (*(it++)).address()->nodeName();
+                KInetSocketAddress *address = (*(it++)).address();
+                if (!address)
+                        continue;
+                QString hostName = address->nodeName();
                 KUser u;
                 QString x = a; // replace does not work in const QString. Why??


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic