Revision: 4308
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4308&view=rev
Author: ossman_
Date: 2011-03-02 12:44:46 +0000 (Wed, 02 Mar 2011)
Log Message:
-----------
Catch when no host was specified a bit more gracefully.
Modified Paths:
--------------
trunk/common/rfb/Hostname.h
Modified: trunk/common/rfb/Hostname.h
===================================================================
--- trunk/common/rfb/Hostname.h 2011-03-02 12:44:12 UTC (rev 4307)
+++ trunk/common/rfb/Hostname.h 2011-03-02 12:44:46 UTC (rev 4308)
@@ -28,6 +28,8 @@
static void getHostAndPort(const char* hi, char** host, int* port, int
basePort=5900) {
CharArray portBuf;
CharArray hostBuf;
+ if (hi == NULL)
+ throw rdr::Exception("NULL host specified");
if (hi[0] == '[') {
if (!strSplit(&hi[1], ']', &hostBuf.buf, &portBuf.buf))
throw rdr::Exception("unmatched [ in host");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits