Error condition if eth server address not told on client.
authorviric@mandarina
Sat, 06 Oct 2007 21:56:22 +0200
changeset 65 107ab713b65b
parent 64 4db3a61ec257
child 66 b2469563a1dc
Error condition if eth server address not told on client.
eth_proto.c
--- a/eth_proto.c	Sat Oct 06 21:44:58 2007 +0200
+++ b/eth_proto.c	Sat Oct 06 21:56:22 2007 +0200
@@ -76,6 +76,8 @@
 
     if ( !command_line.is_server)
     {
+        if (command_line.c_param.server_address == 0)
+            error("You must specify the MAC you want to connect to.");
         eth_fill_mac(edata.partner, command_line.c_param.server_address);
         edata.partner_set = 1;