s4-ipv6: the wins replication server can only handle IPv4
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 May 2011 11:08:45 +0000 (13:08 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 02:26:10 +0000 (12:26 +1000)
source4/wrepl_server/wrepl_in_connection.c

index dc6beb3f2ad5753c306e7b7ddaf3c5c51f8de998..0837d0097f28b1ed183ccd0553f25f76abc2f793 100644 (file)
@@ -450,6 +450,9 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar
                   socket per interface and bind to only these.
                */
                for(i = 0; i < num_interfaces; i++) {
+                       if (!iface_list_n_is_v4(ifaces, i)) {
+                               continue;
+                       }
                        address = iface_list_n_ip(ifaces, i);
                        status = stream_setup_socket(task, task->event_ctx,
                                                     task->lp_ctx, model_ops,