shithub: choc

Download patch

ref: 27e8895b2f01820ab3bce997e7d9cffee9acdd13
parent: b27540d3bae29ac3d0114d0ee852a26ec30977ba
author: Simon Howard <fraggle@gmail.com>
date: Mon Feb 27 14:39:26 EST 2006

Quit with an error when unable to resolve an address

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 397

--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: d_net.c 395 2006-02-27 17:57:39Z fraggle $
+// $Id: d_net.c 397 2006-02-27 19:39:26Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -117,7 +117,7 @@
 //-----------------------------------------------------------------------------
 
 
-static const char rcsid[] = "$Id: d_net.c 395 2006-02-27 17:57:39Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 397 2006-02-27 19:39:26Z fraggle $";
 
 
 #include "d_main.h"
@@ -290,6 +290,11 @@
         if (i > 0)
         {
             addr = net_sdl_module.ResolveAddress(myargv[i+1]);
+
+            if (addr == NULL)
+            {
+                I_Error("Unable to resolve \"%s\"", myargv[i+1]);
+            }
         }
     }