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");
}
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");
}
tevent_fd_set_close_fn(s->fde, smbd_open_socket_close_fn);
-}
+
DLIST_ADD_END(parent->sockets, s);
return true;