[pisa-src] r1675 - trunk/pisasd/sdregister.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 12 Nov 2009 16:13:42 +0100

Author: tjansen
Date: Thu Nov 12 16:13:42 2009
New Revision: 1675

Log:
Ignore connection requests with invalid types.

If we don't get a valid connection type we don't know how to handle the
connection anyway, so don't try to be too nice and tolerant.

Modified:
   trunk/pisasd/sdregister.c

Modified: trunk/pisasd/sdregister.c
==============================================================================
--- trunk/pisasd/sdregister.c   Thu Nov 12 16:07:07 2009        (r1674)
+++ trunk/pisasd/sdregister.c   Thu Nov 12 16:13:42 2009        (r1675)
@@ -123,9 +123,7 @@
                        PISA_INFO("Accepted legacy router client %s as %s\n", 
buffer, ip_local);
                        break;
                default:
-                       /* @TODO: do we really want to accept incorrect 
CONTYPEs? */
-                       e = pisa_register_client_accept(addr, type, 
&client_ipv4);
-                       PISA_ERROR("Accepted unknown type %i client %s\n", 
type, buffer);
+                       PISA_ERROR("Ignored unknown type %i client %s\n", type, 
buffer);
                        break;
        }
 }

Other related posts:

  • » [pisa-src] r1675 - trunk/pisasd/sdregister.c - Thomas Jansen