disable smbd -i again
authorRalph Boehme <slow@samba.org>
Fri, 30 Sep 2016 22:41:41 +0000 (15:41 -0700)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2018 12:35:13 +0000 (14:35 +0200)
source3/smbd/server.c

index 347a7d2b9d212de7fab58c503a44f964b546bf97..8732e9a6a4b9f2c298eedbfa1f5b16ea97779534 100644 (file)
@@ -1477,7 +1477,6 @@ static bool smb_direct_client_start(struct smbd_parent_context *parent)
        int result;
        bool ok;
 
-       if (0) {
        parent->smbd_ctr_socket = smb_direct_socket(parent);
        if (parent->smbd_ctr_socket == NULL) {
                DBG_ERR("smb_direct_socket failed\n");
@@ -1492,12 +1491,12 @@ static bool smb_direct_client_start(struct smbd_parent_context *parent)
        }
 
        DBG_ERR("smb_direct_ping got [%" PRIx32 "]\n", ping_data);
-       }
+
        s = talloc_zero(parent, struct smbd_open_socket);
        if (s == NULL) {
                return false;
        }
-if (0) {
+
        result = smb_direct_bind(parent->smbd_ctr_socket, NULL);
        if (result != 0) {
                DBG_ERR("smb_direct_bind failed\n");
@@ -1531,7 +1530,7 @@ if (0) {
        }
 
        tevent_fd_set_close_fn(s->fde, smbd_open_socket_close_fn);
-}
+
        DLIST_ADD_END(parent->sockets, s);
 
        return true;