]> arthur.barton.de Git - netatalk.git/commitdiff
Check if there are configured listeners
authorFrank Lahm <franklahm@googlemail.com>
Mon, 30 May 2011 08:46:39 +0000 (10:46 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 30 May 2011 08:46:39 +0000 (10:46 +0200)
etc/afpd/fce_api.c

index aef6f1c426f2cc1bba2958f554996734b0009b8e..37f06732c76a83fd8a4366169ae782560883f25b 100755 (executable)
@@ -270,6 +270,10 @@ static int add_udp_socket( char *target_ip, int target_port )
  * */\r
 static int register_fce( char *u_name, int is_dir, int mode )\r
 {\r
+    if (udp_sockets == 0)\r
+        /* No listeners configured */\r
+        return AFP_OK;\r
+\r
     if (u_name == NULL)\r
         return AFPERR_PARAM;\r
 \r